load(__DIR__ . '/Commands'); $this->app->singleton('command.migrate', function ($app) { return new MigrateCommand($app['migrator'], $app[Dispatcher::class]); }); $this->app->singleton('command.migrate.install', function ($app) { return new InstallCommand($app['migration.repository']); }); } protected function shouldDiscoverCommands(): false { return false; } protected function getArtisan(): ?Artisan { return $this->artisan = (new Artisan($this->app, $this->events, $this->app->version())) ->resolveCommands($this->commands); } }