user image

Mohamed Atef
Published in : 2021-05-17

[SOLVED] No application encryption key has been specified.


“No application encryption key has been specified.”
I see this error above when I try to visit my website!? 
Can anyone help me?  

Thanks in advance


Joseph Morgan Date : 2021-05-17

Best answers


Best answers


Hello Mohamed, 
I see that this issue because your .env file is missing the application key, please run the command below so you can generate a new key

php artisan key:generate 


Mohamed Atef Date : 2021-12-17

Thank you

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

How to check Laravel version?
Publish date: 2022-04-07 | Comments: 2
Laravel install passport have access denied error
Publish date: 2022-02-23 | Comments: 4
Laravel clear cache files manually
Publish date: 2022-03-02 | Comments: 2
I want to make multiple foreign keys in Laravel, can I?
Publish date: 2022-01-27 | Comments: 5
call_user_func() expects parameter 1 to be a valid callback
Publish date: 2022-02-22 | Comments: 2
Laravel Network is unreachable stream_socket_client 587
Publish date: 2022-02-16 | Comments: 4
[solved] Class "App\Exceptions\Client" not found
Publish date: 2022-02-09 | Comments: 2