Skip to content

Commit

Permalink
Merge branch 'remove-laravel-helpers-dep-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
tabacitu committed Mar 10, 2020
2 parents feb1488 + 6001af3 commit 6b5ea90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/PivotMigrationMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Laracasts\Generators\Commands;

use Illuminate\Console\GeneratorCommand;
use Illuminate\Support\Str;
use Symfony\Component\Console\Input\InputArgument;

class PivotMigrationMakeCommand extends GeneratorCommand
Expand Down Expand Up @@ -169,7 +170,7 @@ protected function getSortedTableNames()
*/
protected function getSortedSingularTableNames()
{
$tables = array_map('str_singular', $this->getTableNamesFromInput());
$tables = array_map('Str::singular', $this->getTableNamesFromInput());

sort($tables);

Expand Down

0 comments on commit 6b5ea90

Please sign in to comment.