N
N
Nikita Kravchenko2019-05-26 14:38:14
Laravel
Nikita Kravchenko, 2019-05-26 14:38:14

Why is no laravel project working?

Hello! I decided to update homestead and got an error

fatal error: Uncaught RuntimeException: A facade root has not been set.

Updated with commands: vagrant box update; composer update
After that, this error appeared on all my projects. On new ones (which I create via laravel new or composer create-project laravel/laravel), old ones. Any laravel project in homestead does not work and gives this error. However, php works and the same phpmyadmin works properly.
Tried deleting homestead, vagrant, php and nothing helped. Tried different versions of php (7.1, 7.2, 7.3)
System mac os 10.14.5
Here is the error:
5cea79f96eb0c345350939.png
Here is the configuration:
5cea7a1e045ee602168721.png
In laravel.log these are the entries:
[2019-05-26 10:10:31] laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (InvalidArgumentException(code: 0): Log [] is not defined. at /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:168)
[stacktrace]
#0 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(102): Illuminate\\Log\\LogManager->resolve(NULL)
#1 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(90): Illuminate\\Log\\LogManager->get(NULL)
#2 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(500): Illuminate\\Log\\LogManager->driver()
#3 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(114): Illuminate\\Log\\LogManager->error('Unable to load ...', Array)
#4 /home/vagrant/code/ezmoney/app/Exceptions/Handler.php(37): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(Exception))
#5 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(314): App\\Exceptions\\Handler->report(Object(Exception))
#6 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(Exception))
#7 /home/vagrant/code/ezmoney/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#8 {main}
"} 
[2019-05-26 10:10:31] laravel.ERROR: Unable to load the "app" configuration file. {"exception":"[object] (Exception(code: 0): Unable to load the \"app\" configuration file. at /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:68)
[stacktrace]
#0 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(39): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\\Foundation\\Application), Object(Illuminate\\Config\\Repository))
#1 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(210): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->bootstrap(Object(Illuminate\\Foundation\\Application))
#2 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(162): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#3 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(146): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#4 /home/vagrant/code/ezmoney/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#5 /home/vagrant/code/ezmoney/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#6 {main}
"}

He provided maximum information, because he spent the whole day on solving this problem, the work is worth it, but nothing helps. I ask for your help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita Kravchenko, 2019-05-26
@nkdev55

Removed homestead and installed valet. Everything is working.

O
OnYourLips, 2019-05-26
@OnYourLips

In bootstrap/app.php uncomment $app->withFacades();
Learn to use composer: maybe you didn't fix minor dependencies in composer.lock and started updating.
Offtopic, I’ll say that using non-LTS versions of ubuntu is bad, they are not for you, as an end user, but for those who work on ubuntu or are fans of fresh (but they usually sit on arch).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question