close

[Solved] RuntimeException No application encryption key has been specified

Hello Guys, How are you all? Hope You all Are Fine. Today I am just run PHP artisan serve but I am facing the following error RuntimeException No application encryption key has been specified in Laravel. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How RuntimeException No application encryption key has been specified Error Occurs ?

Today I am just run PHP artisan serve but I am facing the following error.

RuntimeException No application encryption key has been specified.

How To Solve RuntimeException No application encryption key has been specified Error ?

  1. How To Solve RuntimeException No application encryption key has been specified Error?

    To Solve RuntimeException No application encryption key has been specified Error Before using Laravel’s encrypter, you must set a key option in your config/app.php configuration file. You should use the php artisan key:generate command to generate this key. Just Run This command. php artisan key:generate

  2. RuntimeException No application encryption key has been specified

    To Solve RuntimeException No application encryption key has been specified Error Before using Laravel’s encrypter, you must set a key option in your config/app.php configuration file. You should use the php artisan key:generate command to generate this key. Just Run This command. php artisan key:generate

Solution 1: Run php artisan key:generate

Before using Laravel’s encrypter, you must set a key option in your config/app.php configuration file. You should use the php artisan key:generate command to generate this key. Just Run This command.

php artisan key:generate

Solution 2: reset the cached config files

Just run these two commands in your project root.

php artisan key:generate
php artisan config:cache

Solution 3: Simply run this command

Simply run this command

php artisan key:generate

Then

php artisan config:cache

Then

php artisan serve

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment