user860511
user860511

Reputation:

Location of PHP error logs in Laravel Homestead

I'm currently experiencing routing issues, where various pages of my application are returning white pages.

Where are the PHP logs located within Homestead Vagrant so I can diagnose what's the issue?

I've checked /var/log/ and I can only see a php7.0-fpm.log that relates to PHP, but nothing is generated within here when I read it.

Upvotes: 15

Views: 13650

Answers (1)

Ryan
Ryan

Reputation: 24019

I just had this problem too.

Finally I figured out that it was because my custom Laravel code (that I'd downloaded from my Bitbucket repo onto a new computer) included custom code in bootstrap/app.php at the $app->configureMonologUsing line, and I hadn't properly set up a new .env file.

I guess it can be dangerous / fragile to mess with the default logger.

But now that I fixed my .env, the logs correctly appear in /storage/logs/laravel.log.

Upvotes: 6

Related Questions