Questions & Answers

Target class [db.schema] does not exist After upgrading to Laravel 9

After upgrading from Laravel 8 to 9, I get stuck on this error


Target class [db.schema] does not exist.

at vendor/laravel/framework/src/Illuminate/Container/Container.php:895

any idea the cause and how to fix ? thanks !

Going through the upgrade guide nothing is said about any changes to the DatabaseServiceProvider or ServiceProviders in general

2023-01-22 23:30:04
did you change the version of nunomaduro/collision to ^6.1 like pointed out in the upgrade guide ?
2023-01-22 23:30:04
@N69S yes it's updated to ^6.1
Answers(0) :