Support the ongoing development of Laravel.io →
posted 7 years ago
Installation
Last updated 2 years ago.
0

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").

Last updated 7 years ago.
0

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.

0

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.

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

notflip notflip Joined 2 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.