1 | <?php |
||
11 | class MigrateMakeCommand extends IlluminateMigrateMakeCommand |
||
12 | { |
||
13 | /** |
||
14 | * The console command signature. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $signature = 'make:migration {name : The name of the migration} |
||
19 | {--create= : The collection to be created} |
||
20 | {--collection= : The collection to migrate} |
||
21 | {--table= : (Alias for collection)} |
||
22 | {--path= : The location where the migration file should be created} |
||
23 | {--realpath : Indicate any provided migration file paths are pre-resolved absolute paths}'; |
||
24 | |||
25 | /** |
||
26 | * Create a new migration install command instance. |
||
27 | * @param MigrationCreator $creator |
||
28 | * @param Composer $composer |
||
29 | */ |
||
30 | public function __construct(MigrationCreator $creator, Composer $composer) |
||
37 | |||
38 | /** |
||
39 | * Execute the console command. |
||
40 | * |
||
41 | * @return void |
||
42 | * @throws \Exception |
||
43 | */ |
||
44 | public function handle() |
||
81 | |||
82 | /** |
||
83 | * Write the migration file to disk. |
||
84 | * |
||
85 | * @param string $name |
||
86 | * @param string $collection |
||
87 | * @param bool $create |
||
88 | * @return void |
||
89 | * @throws \Exception |
||
90 | */ |
||
91 | protected function writeMigration($name, $collection, $create) |
||
99 | } |
||
100 |