amite's avatar

Errors not showing in Laravel 5 App

I got a fresh laravel 5 app set up but I can't see any errors on screen. I have turned debug to true in app.php and added the correct write permissions to the storage folder.

What should I enable to start seeing normal errors on my browser screen? I am using Homestead. I can see errors being properly logged in laravel.log

0 likes
9 replies
nwitthaus's avatar

Do a "php artisan optimize" in your app's directory directly on your Vagrant box. The directories of the Whoops resource files get a little screwy.

1 like
laloutre's avatar
Level 5

Or delete storage/meta/compiled.php file.

2 likes
uxweb's avatar

Anyone knows why is this happening now?, before 5 and even in 4.3 that issue didn't exist.

2 likes
derekmcwhinnie's avatar

When "storage/meta/compiled.php" doesn't exist (as in my case) then do " 'php artisan optimize' in your app's directory directly on your Vagrant box." as nwitthaus said above. This worked for me.

aakash's avatar

I solve this by changing the permission of the storage directory chmod 755 app/storage -R

2 likes
Ozan's avatar

@aakash It actually needs to be 775 if you use www-data as group

cheneesam's avatar

or on .env file, make it: APP_ENV=local APP_DEBUG=true

rui.melo's avatar

I don't know if it's the case for most of you but for me it was the fact that when I created a new laravel project in 5.4, the Whoops package was no longer present in the composer.json file.

"require-dev": {
    "filp/whoops": "^2.1"
}
bit_man's avatar

found a solution: change APP_ENV=dev in .env

Please or to participate in this conversation.