Skip to content

Commit

Permalink
Merge pull request #406 from UnderlineWords/master
Browse files Browse the repository at this point in the history
Str::studly
  • Loading branch information
kaidesu authored Sep 18, 2019
2 parents 810d25b + 29c9386 commit 3ffcbd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Console/Generators/MakeModuleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:');
Expand Down
3 changes: 2 additions & 1 deletion src/Repositories/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -122,7 +123,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}/";
Expand Down

0 comments on commit 3ffcbd5

Please sign in to comment.