Skip to content

Commit

Permalink
Merge pull request #176 from laracasts/fix-175
Browse files Browse the repository at this point in the history
Replaced helpers with Str
  • Loading branch information
tabacitu authored Mar 29, 2020
2 parents 6b5ea90 + cc57778 commit 6d628e0
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 6d628e0

Please sign in to comment.