Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Illuminate/Database/Eloquent/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ public function load($path)

if (is_dir($path)) {
foreach (Finder::create()->files()->in($path) as $file) {
if(pathinfo($file->getRealPath(), PATHINFO_EXTENSION) !== 'php') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just Finder::create()->files()->name('*.php')->in($path) ?

continue;
}

require $file->getRealPath();
}
}
Expand Down