Skip to content

Commit

Permalink
fix migration command
Browse files Browse the repository at this point in the history
  • Loading branch information
axyr committed Aug 16, 2024
1 parent e5d1d42 commit 5fd75a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Commands/GenerateCrud.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ public function createClassFiles(): void

public function createMigration(): void
{
$command = sprintf('make:migration create_%s_table', strtolower(Str::plural($this->argument('name'))));
$name = sprintf('create_%s_table', strtolower(Str::plural($this->argument('name'))));

$this->call($command);
$this->call('make:migration', [
'name' => $name,
]);
}
}

0 comments on commit 5fd75a0

Please sign in to comment.