Skip to content

Commit

Permalink
Only look for files ending with .php in model:prune (#38975)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jubeki authored Sep 27, 2021
1 parent 9104f16 commit 14e959c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Console/PruneCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function models()
return collect($models);
}

return collect((new Finder)->in(app_path('Models'))->files())
return collect((new Finder)->in(app_path('Models'))->files()->name('*.php'))
->map(function ($model) {
$namespace = $this->laravel->getNamespace();

Expand Down

0 comments on commit 14e959c

Please sign in to comment.