mirror of
https://github.com/flarum/core.git
synced 2025-07-18 15:21:16 +02:00
Fix migrate command and generated migration namespace
This commit is contained in:
@@ -92,8 +92,10 @@ class MigrationCreator
|
||||
*/
|
||||
protected function populateStub($extension, $name, $stub, $table)
|
||||
{
|
||||
list($vendor, $package) = explode('-', $extension, 2);
|
||||
|
||||
$replacements = [
|
||||
'{{namespace}}' => Str::studly($extension) ?: 'Flarum\Core',
|
||||
'{{namespace}}' => Str::studly($vendor).'\\'.Str::studly($package) ?: 'Flarum\Core',
|
||||
'{{name}}' => Str::studly($name),
|
||||
'{{table}}' => $table
|
||||
];
|
||||
|
Reference in New Issue
Block a user