Laravel 5.5 error No application encryption key has been specified.

Laravel 5.5 error No application encryption key has been specified.

This morning when i clone one of repository on my github (this repo is based on laravel 5.5) to another computer, i got an error RuntimeException No application encryption key has been specified. How to solve this problem?

The error happened because the laravel application does not have application key, therefore the solution is to generate new application key. We can use laravel artisan command to generate application key, like this:

Problem:
RuntimeException
No application encryption key has been specified.

Solution:
php artisan key:generate

For laravel 5.5 the application key will be stored on .env file

1 comments:

What is the difference Laravel 5.4 and 5.5, Any Advice

Thanks!
Gutter Cleaning Sydney


EmoticonEmoticon