Laravel 5: No application encryption key has been specified

Laravel 5: No application encryption key has been specified

In this post we will give you information about Laravel 5: No application encryption key has been specified. Hear we will give you detail about Laravel 5: No application encryption key has been specifiedAnd how to use it also give you demo for it if it is necessary.

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.

Typically, this string should be 32 characters long.

Hope this code and post will helped you for implement Laravel 5: No application encryption key has been specified. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Leave a Comment

Your email address will not be published. Required fields are marked *

1  +    =  5

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US