FIX: just another bugfix
This commit is contained in:
@@ -49,11 +49,11 @@ class CreateMigration extends Command
|
||||
}
|
||||
|
||||
while (is_null($name)) {
|
||||
$name = $this->ask('Input migration name');
|
||||
$this->migrationName = $name = $this->ask('Input migration name');
|
||||
}
|
||||
|
||||
$stubName = $this->option('create') ? 'create' : 'new';
|
||||
$content = file_get_contents(config('modules.paths.stubs') . '/Migrations/'.$stubName.'.stub');
|
||||
$content = file_get_contents(config('modules.paths.stubs') . '/Migrations/' . $stubName . '.stub');
|
||||
$content = $this->replacePlaceholders($content);
|
||||
|
||||
$migrationName = $path . $this->getMigrationName($name);
|
||||
@@ -74,7 +74,7 @@ class CreateMigration extends Command
|
||||
{
|
||||
$replace = [
|
||||
'$MigrationName$' => studly_case($this->migrationName),
|
||||
'$ModuleName$' => $this->moduleName,
|
||||
'$ModuleName$' => $this->moduleName,
|
||||
'$TableName$' => $this->tableName
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user