Solution :
The logs are located in the storage
directory. If you want your laravel to display a error for you rather than a cryptic 'Whoops' message, then you need to copy the .env.example
to .env
and also make sure your APP_ENV=local
is in there. It should then show you a very detailed error message.
OR
This is happening as there is the field in .env
file named, APP_KEY, which seems blank now, so we need some random key for a variable.
Please follow below steps to get rid of your problem.
1) Copy your.env.example
to your .env
2) Now go to your root directory in a command prompt (If you are using the windows) or go to terminal (If you are using the MAC or LINUX) where you have installed your laravel project/files and run below command
php artisan key:generate
and after that run your project. It's all done.