Laravel 5: No application encryption key has been specified

Laravel 5: No application encryption key has been specified

In this article, you will find the solution of a common issue you might experience while working with Laravel application.

RuntimeException No application encryption key has been specified.

You will get this error when you start with the fresh larval application and copy the .env.example file to .env but do not set the value of APP_KEY variable then .

You can easily fix this issue by running following artisan command to generate new random key for your application :

$ php artisan key:generate

This will generate a encryption key, add this key to your .env file and then run your application.

Phone: (+91) 8800417876
Noida, 201301