diff --git a/src/Prettus/Repository/Generators/Commands/RepositoryCommand.php b/src/Prettus/Repository/Generators/Commands/RepositoryCommand.php index 2d0a0aa9..734cff8c 100644 --- a/src/Prettus/Repository/Generators/Commands/RepositoryCommand.php +++ b/src/Prettus/Repository/Generators/Commands/RepositoryCommand.php @@ -10,6 +10,7 @@ use Prettus\Repository\Generators\RepositoryInterfaceGenerator; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; +use Illuminate\Support\Str; /** * Class RepositoryCommand @@ -66,7 +67,7 @@ public function fire() $this->generators = new Collection(); $migrationGenerator = new MigrationGenerator([ - 'name' => 'create_' . snake_case(str_plural($this->argument('name'))) . '_table', + 'name' => 'create_' . Str::snake(Str::str_plural($this->argument('name'))) . '_table', 'fields' => $this->option('fillable'), 'force' => $this->option('force'), ]);