Answer Posted / amit khanna
Decryption of the values is done with the decrypt helper. Observe the following lines of code -
use IlluminateContractsEncryptionDecryptException;
// Exception for decryption thrown in facade
try {
$decrypted = decrypt($encryptedValue);
} catch (DecryptException $e) {
//
}
Please note that if the process of decryption is not successful because of invalid MAC being used, then an appropriate exception is thrown.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain response in laravel.
What is the role of service provider?
What is eloquent orm?
Where do you locate route files?
Explain me active record implementation. How to use it laravel?
What is laravel framework?
Explain some benefits of laravel over other php frameworks.
What is eloquent?
How to bind a service container to a service provide.
How to generate a controller with resources in laravel?
What is namespace laravel?
What is singleton design pattern in laravel?
What is use of model in laravel?
What is gate in laravel?
How to set login page as default page in laravel?