1 | <?php |
||
11 | class MigrateCommand extends Command |
||
12 | { |
||
13 | /** |
||
14 | * The console command name. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $name = 'module:migrate'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Migrate the migrations from the specified module or from all modules.'; |
||
26 | |||
27 | /** |
||
28 | * @var \Nwidart\Modules\Repository |
||
29 | */ |
||
30 | protected $module; |
||
31 | |||
32 | /** |
||
33 | * Execute the console command. |
||
34 | * |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public function fire() |
||
55 | |||
56 | /** |
||
57 | * Run the migration from the specified module. |
||
58 | * |
||
59 | * @param Module $module |
||
60 | * |
||
61 | * @return mixed |
||
62 | */ |
||
63 | protected function migrate(Module $module) |
||
77 | |||
78 | /** |
||
79 | * Get the console command arguments. |
||
80 | * |
||
81 | * @return array |
||
82 | */ |
||
83 | 43 | protected function getArguments() |
|
89 | |||
90 | /** |
||
91 | * Get the console command options. |
||
92 | * |
||
93 | * @return array |
||
94 | */ |
||
95 | 43 | protected function getOptions() |
|
105 | } |
||
106 |