Jo Micheal
16 Jul 2022
Laravel
Hello Guys,
I am facing this error when I try to run Laravel 9 for the first time
Note: .env was not exists and i created it by myself what should I do?
Thanks in Advance
Hello Jo,
That's because you need to add a line called “APP_KEY” and then save the changes of the .env then run
php artisan key:generate
you will find value added to “APP_KEY”, then clear the application cache using
php artisan optimize
or
php artisan config:cache
Now run the server using php artisan serve and it will work fine
Jo Micheal
16 Jul 2022
Thank you so much, it's working!
© 2024 Copyrights reserved for web-brackets.com