Skip to content

Commit

Permalink
Use database_path to resolve factories directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDoctor0 authored Apr 21, 2023
1 parent 5731ef7 commit 7ee56e4
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 @@ -78,7 +78,7 @@ public function handle(): void

foreach ($models as $model) {
$class = class_basename($model);
$filename = "database/factories/{$class}Factory.php";
$filename = database_path("factories/{$class}Factory.php");

$class = $this->generateClassName($model);

Expand Down

0 comments on commit 7ee56e4

Please sign in to comment.