No application encryption key has been specified New Laravel app

No application encryption key has been specified  New Laravel app

 

whene install new laravel app and run in localhost display error:

RuntimeException

application encryption key has been specified

No application encryption key has been specified  New Laravel app

solution1:
execute below code in command line in root project

php artisan key:generate

solution2:

open .env file and set random string for APP_KEY

APP_KEY=0vBc3z5o9R+3usc+zVKhRJghRS0LFgrQZDYArKOYlqc=

solution3:

open app.php file in config folder in root project
and change key

    'key' => '0vBc3z5o9R+3usc+zVKhRJghRS0LFgrQZDYArKOYlqc=',

No application encryption key has been specified  New Laravel app

Leave a Reply

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