Skip to content

Commit

Permalink
fixes #175 - replaced helpers with Str
Browse files Browse the repository at this point in the history
  • Loading branch information
tabacitu committed Mar 29, 2020
1 parent 6b5ea90 commit cc57778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/PivotMigrationMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/SeedMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

/**
Expand Down

0 comments on commit cc57778

Please sign in to comment.