Location of PHP error logs in Laravel Homestead Location of PHP error logs in Laravel Homestead laravel laravel

Location of PHP error logs in Laravel Homestead


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.