1

我正在尝试运行 Laravel 5.5 修补程序,但是当我尝试运行工厂命令时出现异常。例如:

factory(App\Article::class, 100)->create();

当我尝试运行时,可以说另一个存储库中的 User:class 命令它可以正常工作。

   PHP error:  Class 'Psy\Exception\ErrorException' not found in /Users/sebastian/Development/app.manager/vendor/psy/psysh/src/Psy/Shell.php on line 812

扩展错误消息:

PHP warning:  opendir(/Users/sebastian/Development/app.manager/database/factories): failed to open dir: Too many open files in /Users/sebastian/Development/app.manager/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 145
PHP Warning:  Uncaught Psy\Exception\ErrorException: PHP warning:  require(/Users/sebastian/Development/app.manager/database/factories/ArticleFactory.php): failed to open stream: Too many open files in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php on line 202 in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php:202
Stack trace:
#0 /Users/sebastian/Development/app.manager/vendor/psy/psysh/src/Psy/Shell.php(809): Psy\Exception\ErrorException::throwException(2, 'require(/Users/...', '/Users/sebastia...', 202)
#1 /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php(202): Psy\Shell->handleError(2, 'require(/Users/...', '/Users/sebastia...', 202, Array)
#2 /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php(202): require()
#3 /Users/sebastian/Development/app.manager/vendor/laravel/framework in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php on line 202
PHP Fatal error:  Illuminate\Database\Eloquent\Factory::load(): Failed opening required '/Users/sebastian/Development/app.manager/database/factories/ArticleFactory.php' (include_path='.:') in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php on line 202
PHP Fatal error:  Uncaught Psy\Exception\ErrorException: PHP warning:  include(/Users/sebastian/Development/app.manager/vendor/symfony/debug/Exception/FatalErrorException.php): failed to open stream: Too many open files in /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php on line 444 in /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php:444
Stack trace:
#0 /Users/sebastian/Development/app.manager/vendor/psy/psysh/src/Psy/Shell.php(809): Psy\Exception\ErrorException::throwException(2, 'include(/Users/...', '/Users/sebastia...', 444)
#1 /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php(444): Psy\Shell->handleError(2, 'include(/Users/...', '/Users/sebastia...', 444, Array)
#2 /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php(444): include()
#3 /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/Users/sebastia...')
#4 [internal function]: Composer\Autoload\ClassLoader->loadClass('Sym in /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php on line 444

我已经尝试过的:

  • 从 composer.json 中删除并重新添加 laravel/tinker
4

0 回答 0