1 Answer
At first rename the .env.example to .env alone.
Next you need to generate the key using below command,
# php artisan key:generate
Update the generated key in .env file APP_KEY column and also in config/app.php file as shown below.
'key' => env('APP_KEY' , 'New key'),
Once its done restart the web server (httpd/nginx) to take effect.
Your Answer
x