require(/home/dan/Codes/laravel/jobportal/database/factories/CategoryFactory.php): failed to open stream: Too many open files
at vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php:220
216| $factory = $this;
217|
218| if (is_dir($path)) {
219| foreach (Finder::create()->files()->name('*.php')->in($path) as $file) {
> 220| require $file->getRealPath();
221| }
222| }
223|
224| return $factory;
Summary
Trying to add distinct values to a category table in Laravel 7 using factories
Self-enclosed code snippet for reproduction
Expected output
Actual output