From 5fd75a08debd19ee7144e3019efe3f8043e45fb7 Mon Sep 17 00:00:00 2001 From: Martijn van Nieuwenhoven Date: Fri, 16 Aug 2024 14:57:49 +0200 Subject: [PATCH] fix migration command --- src/Commands/GenerateCrud.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Commands/GenerateCrud.php b/src/Commands/GenerateCrud.php index 66d1eda..39e68ce 100644 --- a/src/Commands/GenerateCrud.php +++ b/src/Commands/GenerateCrud.php @@ -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, + ]); } }