app->register(MigrationServiceProvider::class); $this->app->bind(MigrationRepositoryInterface::class, function ($app) { return $app->make('migration.repository'); }); $this->app->singleton('command.migrate', function ($app) { return new MigrateCommand( $app->make('migrator'), $app->make(Dispatcher::class) ); }); } /** * Bootstrap any application services. * * @return void */ public function boot() { Customer::observe(CustomerObserver::class); } }