I had this and it's quite tricky.
I can't remember correctly but what I think happened in my case was, I tried to fetch some service in a ServiceProvider(something like app('hash')
) before this service what initialized(eg. in register method). Exception was thrown but when Exception Handler tried to handle it, it also tried to fetch some service(log in this case) and failed as well.
I also did a search on the internet and what people suggested was:
Check if .env
file is present
Check if every multi-word constant in .env
file(like Foo Bar) is enclosed in quotes("Foo Bar").
Its from an exception happening before 'log' is bound. Can be from a few things, but its early in the bootstrap process. As KKSzymanowski mentioned, its common to be an issue with the .env
file.
Hi, i think on composer update
composer's autoload or something else trying to call this log()
method earlier then app.php
providers&facades is loaded, try to disable it on update and after it enable back or use composer install
instead.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community