Level 102
Try dumping autoload
composer dump-autoload
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, if I try to create a controller, migration or anything via php artisan I get this error
Class 'Illuminate\Database\Migrations\Migrator' not found
at vendor/laravel/framework/src/Illuminate/Database/MigrationServiceProvider.php:80
76| // so the migrator can resolve any of these connections when it needs to.
77| $this->app->singleton('migrator', function ($app) {
78| $repository = $app['migration.repository'];
79|
> 80| return new Migrator($repository, $app['db'], $app['files'], $app['events']);
81| });
82| }
83|
84| /**
+19 vendor frames
20 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Remove whole vendor folder and then run
composer install
Please or to participate in this conversation.