1 | <?php |
||
11 | class MigrateResetCommand extends Command |
||
12 | { |
||
13 | use MigrationLoaderTrait; |
||
14 | |||
15 | /** |
||
16 | * The console command name. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $name = 'module:migrate-reset'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Reset the modules migrations.'; |
||
28 | |||
29 | /** |
||
30 | * @var \Nwidart\Modules\Contracts\RepositoryInterface |
||
31 | */ |
||
32 | protected $module; |
||
33 | |||
34 | /** |
||
35 | * Execute the console command. |
||
36 | */ |
||
37 | public function handle() |
||
55 | |||
56 | /** |
||
57 | * Rollback migration from the specified module. |
||
58 | * |
||
59 | * @param $module |
||
60 | */ |
||
61 | public function reset($module) |
||
76 | |||
77 | /** |
||
78 | * Get the console command arguments. |
||
79 | * |
||
80 | * @return array |
||
81 | */ |
||
82 | 99 | protected function getArguments() |
|
88 | |||
89 | /** |
||
90 | * Get the console command options. |
||
91 | * |
||
92 | * @return array |
||
93 | */ |
||
94 | 99 | protected function getOptions() |
|
103 | } |
||
104 |