You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ErrorException : array_map() expects parameter 1 to be a valid callback, class 'Str' not found
at D:\XXXXX\API\vendor\laracasts\generators\src\Commands\PivotMigrationMakeCommand.php:173169| * @return array
170| */
171| protected function getSortedSingularTableNames()
172| {
> 173| $tables = array_map('Str::singular', $this->getTableNamesFromInput());
174|
175| sort($tables);
176|
177| return $tables;
Exception trace:
1array_map("Str::singular")
D:\XXXXX\API\vendor\laracasts\generators\src\Commands\PivotMigrationMakeCommand.php:1732Laracasts\Generators\Commands\PivotMigrationMakeCommand::getSortedSingularTableNames()
D:\XXXXX\API\vendor\laracasts\generators\src\Commands\PivotMigrationMakeCommand.php:150
Please use the argument -v to see more details.
What I've already tried to fix it
I tried some debugging, but I didn't succeed...
The text was updated successfully, but these errors were encountered:
What I did
run the command and add 2 table names
What I expected to happen
I expect the command to generate the pivot table
What happened
it resulted in the following error:
What I've already tried to fix it
I tried some debugging, but I didn't succeed...
The text was updated successfully, but these errors were encountered: