diff --git a/ConsoleServiceProvider.php b/ConsoleServiceProvider.php index 03a0e69..e3f5148 100644 --- a/ConsoleServiceProvider.php +++ b/ConsoleServiceProvider.php @@ -48,8 +48,8 @@ public function register() */ protected function registerFreshCommand() { - $this->app->singleton('command.migrate.fresh', static function () { - return new FreshCommand(); + $this->app->singleton('command.migrate.fresh', static function (Container $app) { + return new FreshCommand($app->make('migrator')); }); }