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() |
||
54 | |||
55 | /** |
||
56 | * Run the migration from the specified module. |
||
57 | * |
||
58 | * @param Module $module |
||
59 | * |
||
60 | * @return mixed |
||
61 | */ |
||
62 | protected function migrate(Module $module) |
||
76 | |||
77 | /** |
||
78 | * Get the console command arguments. |
||
79 | * |
||
80 | * @return array |
||
81 | */ |
||
82 | 38 | protected function getArguments() |
|
88 | |||
89 | /** |
||
90 | * Get the console command options. |
||
91 | * |
||
92 | * @return array |
||
93 | */ |
||
94 | 38 | protected function getOptions() |
|
104 | } |
||
105 |