1 | <?php |
||
9 | class MigrationCreator extends \Illuminate\Database\Migrations\MigrationCreator |
||
10 | { |
||
11 | |||
12 | |||
13 | /** |
||
14 | * Get the migration stub file. |
||
15 | * |
||
16 | * @param string $table |
||
17 | * @param bool $create |
||
18 | * @return string |
||
19 | */ |
||
20 | protected function getStub($table, $create) |
||
24 | |||
25 | /** |
||
26 | * Populate the place-holders in the migration stub. |
||
27 | * |
||
28 | * @param string $name |
||
29 | * @param string $stub |
||
30 | * @param string $table |
||
31 | * @return string |
||
32 | */ |
||
33 | protected function populateStub($name, $stub, $table) |
||
54 | |||
55 | /** |
||
56 | * Defines the default 'Translation' class suffix. |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | protected function getTranslationSuffix() |
||
64 | |||
65 | /** |
||
66 | * Get the class name of a migration name. |
||
67 | * |
||
68 | * @param string $name |
||
69 | * @return string |
||
70 | */ |
||
71 | protected function getClassName($name) |
||
75 | |||
76 | /** |
||
77 | * Get the full path to the migration. |
||
78 | * |
||
79 | * @param string $name |
||
80 | * @param string $path |
||
81 | * @return string |
||
82 | */ |
||
83 | protected function getPath($name, $path) |
||
87 | |||
88 | /** |
||
89 | * Fire the registered post create hooks. |
||
90 | * |
||
91 | * @return void |
||
92 | */ |
||
93 | protected function firePostCreateHooks() |
||
99 | |||
100 | /** |
||
101 | * Register a post migration create hook. |
||
102 | * |
||
103 | * @param \Closure $callback |
||
104 | * @return void |
||
105 | */ |
||
106 | public function afterCreate(Closure $callback) |
||
110 | |||
111 | /** |
||
112 | * Get the path to the stubs. |
||
113 | * |
||
114 | * @return string |
||
115 | */ |
||
116 | public function stubPath() |
||
120 | |||
121 | } |
||
122 |