Location of PHP Error Logs in Laravel Homestead

I am currently facing routing issues when various pages of my application return white pages.

Where are the PHP logs located inside the Homestead Vagrant, so I can diagnose what the problem is?

I checked /var/log/ and I only see php7.0-fpm.log related to PHP, but nothing is generated here when I read it.

+6
source share
1 answer

I also had this problem.

Finally, I realized that this is because my Laravel custom code (which I downloaded from my Bitbucket repository on a new computer) included native code in bootstrap/app.php in the line $app->configureMonologUsing , and 'configure the new one correctly .env file.

I think it can be dangerous / fragile to mess with the default registrar.

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

+2
source

Source: https://habr.com/ru/post/1012078/


All Articles