From cc577782a7551a52482dc65c72ff58cdaea8e647 Mon Sep 17 00:00:00 2001 From: Cristian Tabacitu Date: Sun, 29 Mar 2020 08:04:29 +0300 Subject: [PATCH] fixes #175 - replaced helpers with Str --- src/Commands/PivotMigrationMakeCommand.php | 2 +- src/Commands/SeedMakeCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/PivotMigrationMakeCommand.php b/src/Commands/PivotMigrationMakeCommand.php index 7c0920e..628bcda 100644 --- a/src/Commands/PivotMigrationMakeCommand.php +++ b/src/Commands/PivotMigrationMakeCommand.php @@ -48,7 +48,7 @@ protected function getClassName() $name = implode('', array_map('ucwords', $this->getSortedSingularTableNames())); $name = preg_replace_callback('/(\_)([a-z]{1})/', function ($matches) { - return studly_case($matches[0]); + return Str::studly($matches[0]); }, $name); return "Create{$name}PivotTable"; diff --git a/src/Commands/SeedMakeCommand.php b/src/Commands/SeedMakeCommand.php index 2b1ec30..d3d39d1 100644 --- a/src/Commands/SeedMakeCommand.php +++ b/src/Commands/SeedMakeCommand.php @@ -36,7 +36,7 @@ class SeedMakeCommand extends GeneratorCommand */ protected function getClassName() { - return ucwords(camel_case($this->getNameInput())) . 'TableSeeder'; + return ucwords(Str::camel($this->getNameInput())) . 'TableSeeder'; } /**