From 7bb58d59d2f62e19a54dca3df5280e37fa3f5deb Mon Sep 17 00:00:00 2001 From: Fatih Kececi Date: Wed, 18 Sep 2019 00:46:21 +0300 Subject: [PATCH 1/3] Str::studly() --- src/Repositories/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repositories/Repository.php b/src/Repositories/Repository.php index c016c365..7400c47b 100644 --- a/src/Repositories/Repository.php +++ b/src/Repositories/Repository.php @@ -122,7 +122,7 @@ public function setPath($path) */ public function getModulePath($slug) { - $module = studly_case($slug); + $module = Str::studly($slug); if (\File::exists($this->getPath()."/{$module}/")) { return $this->getPath()."/{$module}/"; From 716f6ca77692f534625a3dc41478e10f784b9e75 Mon Sep 17 00:00:00 2001 From: Fatih Kececi Date: Wed, 18 Sep 2019 00:47:24 +0300 Subject: [PATCH 2/3] Str::studly() --- src/Console/Generators/MakeModuleCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Generators/MakeModuleCommand.php b/src/Console/Generators/MakeModuleCommand.php index 987bb318..3dd5619f 100644 --- a/src/Console/Generators/MakeModuleCommand.php +++ b/src/Console/Generators/MakeModuleCommand.php @@ -146,7 +146,7 @@ protected function stepOne() $this->container['slug'] = $this->ask('Please enter the slug for the module:', $this->container['slug']); $this->container['version'] = $this->ask('Please enter the module version:', $this->container['version']); $this->container['description'] = $this->ask('Please enter the description of the module:', $this->container['description']); - $this->container['basename'] = studly_case($this->container['slug']); + $this->container['basename'] = Str::studly($this->container['slug']); $this->container['namespace'] = config("modules.locations.{$this->container['location']}.namespace") . $this->container['basename']; $this->comment('You have provided the following manifest information:'); From 29c93860561f569090e71d6fe2ab5163077687fa Mon Sep 17 00:00:00 2001 From: Fatih Kececi Date: Wed, 18 Sep 2019 00:54:58 +0300 Subject: [PATCH 3/3] Str::studly() --- src/Repositories/Repository.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Repositories/Repository.php b/src/Repositories/Repository.php index 7400c47b..1e9bafd7 100644 --- a/src/Repositories/Repository.php +++ b/src/Repositories/Repository.php @@ -3,6 +3,7 @@ namespace Caffeinated\Modules\Repositories; use Exception; +use Illuminate\Support\Str; use Caffeinated\Modules\Contracts\Repository as RepositoryContract; use Illuminate\Config\Repository as Config; use Illuminate\Filesystem\Filesystem;