No Application Encryption Key Has Been Specified : laravel

Before using Laravel encrypted, you must set a key option in your config/app.php configuration file.

You should generate key here are the following the steps.

STEP 1) Copy .env.example to .env:   (if you don't have .env file in root folder)
cp -a .env.example .env
STEP 2) Generate a new key : 
$ php artisan key:generate
Step 3) Run project
$ php artisan serve



No comments:

Post a Comment

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...