While trying to migrate laravel to production environment, following error was getting generated while accessing the website through browser.
Whoops, looks like something went wrong
Whoops, looks like something went wrong
The issue was with application key was not generated. For that run the command under public_html to generate a key
php artisan key:generate
Then create an .env file under the public_html and update the generated key in the file.
APP_DEBUG=true
APP_KEY=base64:Nu/zfhr2GBojijc5QGJlhsdgqpcyCwO9h/7+PtzjkSl
Laravel might cache the old config settings, so you need to clear the cache
php artisan config:clear