Solved – No Application Encryption Key Has Been Specified – Laravel

Hi Dev,

This tutorial will give you an example of no application encryption key has been specified. laravel. This tutorial will give you a simple example of laravel no application encryption key has been specified. We will look at an example of laravel 500 error no application encryption key has been specified. In this article, we will implement a laravel ajax no application encryption key has been specified.

You can use this solution with laravel 6, laravel 7, laravel 8 and laravel 9 versions.

Few days ago i was working on very old laravel app and i installed it. Then i simply run app and get “no application encryption key has been specified” error. But i know how to fix it. i need to generate app key using artisan command. so if you found following error then you can use below solution.

“no application encryption key has been specified”

Solution:

You need to generate app key using laravel artisan command. let’s run below command.

php artisan key:generate

Then you will see on following .env file with updated value on APP_KEY variable.

.env

APP_KEY=base64:P9r5RXnghdhnhohddh2HDhBkPGnbLClYiRLx02QG0V6Tw=

.medrectangle-4-multi-155{border:none!important;display:block!important;float:none!important;line-height:0;margin-bottom:15px!important;margin-left:auto!important;margin-right:auto!important;margin-top:15px!important;max-width:100%!important;min-height:250px;min-width:300px;padding:0;text-align:center!important}

Now, you can run your laravel app and it will works.

I hope you get it.

It can help you…

Leave a Comment