FIX: just another bugfix

This commit is contained in:
Michal Kváček
2017-09-14 20:17:16 +02:00
parent 73681a5a4d
commit f10847dede
7 changed files with 9 additions and 27 deletions
@@ -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
];