21
21
use Illuminate \Queue \Console \FlushFailedCommand as FlushFailedQueueCommand ;
22
22
use Illuminate \Queue \Console \ForgetFailedCommand as ForgetFailedQueueCommand ;
23
23
use Illuminate \Database \Console \Migrations \ResetCommand as MigrateResetCommand ;
24
+ use Illuminate \Database \Console \Migrations \FreshCommand as MigrateFreshCommand ;
24
25
use Illuminate \Database \Console \Migrations \StatusCommand as MigrateStatusCommand ;
25
26
use Illuminate \Database \Console \Migrations \InstallCommand as MigrateInstallCommand ;
26
27
use Illuminate \Database \Console \Migrations \RefreshCommand as MigrateRefreshCommand ;
@@ -46,6 +47,7 @@ class ConsoleServiceProvider extends ServiceProvider
46
47
'ClearResets ' => 'command.auth.resets.clear ' ,
47
48
'Migrate ' => 'command.migrate ' ,
48
49
'MigrateInstall ' => 'command.migrate.install ' ,
50
+ 'MigrateFresh ' => 'command.migrate.fresh ' ,
49
51
'MigrateRefresh ' => 'command.migrate.refresh ' ,
50
52
'MigrateReset ' => 'command.migrate.reset ' ,
51
53
'MigrateRollback ' => 'command.migrate.rollback ' ,
@@ -193,6 +195,18 @@ protected function registerMigrateMakeCommand()
193
195
});
194
196
}
195
197
198
+ /**
199
+ * Register the command.
200
+ *
201
+ * @return void
202
+ */
203
+ protected function registerMigrateFreshCommand ()
204
+ {
205
+ $ this ->app ->singleton ('command.migrate.fresh ' , function () {
206
+ return new MigrateFreshCommand ;
207
+ });
208
+ }
209
+
196
210
/**
197
211
* Register the command.
198
212
*
0 commit comments