1 | <?php |
||
9 | class MigrationCreator extends \Illuminate\Database\Migrations\MigrationCreator |
||
10 | { |
||
11 | /** |
||
12 | * Get the migration stub file. |
||
13 | * |
||
14 | * @param string $table |
||
15 | * @param bool $create |
||
16 | * @return string |
||
17 | */ |
||
18 | protected function getStub($table, $create) |
||
22 | |||
23 | /** |
||
24 | * Populate the place-holders in the migration stub. |
||
25 | * |
||
26 | * @param string $name |
||
27 | * @param string $stub |
||
28 | * @param string $table |
||
29 | * @return string |
||
30 | */ |
||
31 | protected function populateStub($name, $stub, $table) |
||
47 | |||
48 | /** |
||
49 | * Defines the default 'Translation' class suffix. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | protected function getTranslationSuffix() |
||
57 | |||
58 | /** |
||
59 | * Get the class name of a migration name. |
||
60 | * |
||
61 | * @param string $name |
||
62 | * @return string |
||
63 | */ |
||
64 | protected function getClassName($name) |
||
68 | |||
69 | /** |
||
70 | * Get the full path to the migration. |
||
71 | * |
||
72 | * @param string $name |
||
73 | * @param string $path |
||
74 | * @return string |
||
75 | */ |
||
76 | protected function getPath($name, $path) |
||
80 | |||
81 | /** |
||
82 | * Fire the registered post create hooks. |
||
83 | * |
||
84 | * @return void |
||
85 | */ |
||
86 | protected function firePostCreateHooks() |
||
92 | |||
93 | /** |
||
94 | * Register a post migration create hook. |
||
95 | * |
||
96 | * @param \Closure $callback |
||
97 | * @return void |
||
98 | */ |
||
99 | public function afterCreate(Closure $callback) |
||
103 | |||
104 | /** |
||
105 | * Get the path to the stubs. |
||
106 | * |
||
107 | * @return string |
||
108 | */ |
||
109 | public function stubPath() |
||
113 | } |