1 | <?php |
||
6 | class MigrationCreator extends \Illuminate\Database\Migrations\MigrationCreator |
||
7 | { |
||
8 | /** |
||
9 | * Get the migration stub file. |
||
10 | * |
||
11 | * @param string $table |
||
12 | * @param bool $create |
||
13 | * @return string |
||
14 | */ |
||
15 | protected function getStub($table, $create) |
||
19 | /** |
||
20 | * Populate the place-holders in the migration stub. |
||
21 | * |
||
22 | * @param string $name |
||
23 | * @param string $stub |
||
24 | * @param string $table |
||
25 | * @return string |
||
26 | */ |
||
27 | protected function populateStub($name, $stub, $table) |
||
42 | /** |
||
43 | * Defines the default 'Translation' class suffix. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | protected function getTranslationSuffix() |
||
51 | /** |
||
52 | * Get the class name of a migration name. |
||
53 | * |
||
54 | * @param string $name |
||
55 | * @return string |
||
56 | */ |
||
57 | protected function getClassName($name) |
||
61 | /** |
||
62 | * Get the full path to the migration. |
||
63 | * |
||
64 | * @param string $name |
||
65 | * @param string $path |
||
66 | * @return string |
||
67 | */ |
||
68 | protected function getPath($name, $path) |
||
72 | /** |
||
73 | * Fire the registered post create hooks. |
||
74 | * |
||
75 | * @return void |
||
76 | */ |
||
77 | protected function firePostCreateHooks() |
||
83 | /** |
||
84 | * Register a post migration create hook. |
||
85 | * |
||
86 | * @param \Closure $callback |
||
87 | * @return void |
||
88 | */ |
||
89 | public function afterCreate(Closure $callback) |
||
93 | /** |
||
94 | * Get the path to the stubs. |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | public function stubPath() |
||
102 | } |