Server error 500 when accessing Laravel 5.8
do you have .env file
in terminal
cp .env.example .envphp artisan key:generatechmod 777 -R storage
you must execute these commands
php artisan key:generatephp artisan config:cache
if it doesn't workyour .env file replace with APP_KEY=base64:jxfiwITVfhauwt6clRR2plSXNg+KHlDbgIUQYIXvkVI=
I face the same issue with Laravel 5.8
but it was online. The way to resolve was to create a .env
file which was missing after I transferred it from localhost. Also transfer all it's content into the new .env
file.