I got this error message after trying to downgrade laravel 9 to 8 cause i recently downgraded my php version from 8 to 7.3
In Facade.php line 178:
Facade does not implement getFacadeAccessor method.
Script @php artisan package:discover --ansi handling the post-autoload-dump even
returned with error code 1
5
Answers
its because you forgot to run
php artisan ui vue –auth
after composer require laravel/ui
in
config/app.php
replacewith:
In my case the error started to appear, after run Laravel Shift to upgrade from 8.x to 9.x, where I’ve executed
composer install
insteadcomposer update
.Then, I’ve deleted the vendor folder and run
composer update
.Now everything is fine.
Same for me after running Laravel Shift.
You probably have a dependency using an older version of illuminate/support.
You have to use an illuminate/support version >= 9
Simply add or update thie line in composer.json:
"illuminate/support": "^9.46",
In my case, I was downgrading the php version to 8.0.1 was causing the issue.. however, updating to 8.0.2 and laravel/farmework to ^9.2 helped me to get rid of the error