Skip to content

Commit

Permalink
Fix invalid faker prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDoctor0 committed Feb 22, 2023
1 parent d7737d7 commit cf911ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/GenerateFactoryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ protected function factoryClass(Relation $relation): string
protected function fakerPrefix(string $type): string
{
if ($this->isLaravel918OrAbove()) {
return "fake()->name->$type";
return "fake()->$type";
}

return $this->isLaravel8OrAbove()
Expand Down

0 comments on commit cf911ee

Please sign in to comment.