【发布时间】:2019-08-08 15:27:29
【问题描述】:
Docker 18.09.2
Mysql 5.7
Laravel 5.7
PHP 7.125
我是 Laravel 新手,遇到问题当我使用php artisan db:seed 时,出现了这个错误:
包括(/var/www/laravel_app/vendor/composer/../../database/seeds/AdminsTableSeeder.php): 无法打开流:没有这样的文件或目录
at /var/www/laravel_app/vendor/composer/ClassLoader.php:444
440| * Prevents access to $this/self from included files.
441| */
442| function includeFile($file)
443| {
> 444| include $file;
445| }
446|
我不知道为什么会这样。
我用php artisan migrate时没有报错。
我已经尝试过php artisan migrate --seed 和php artisan migrate:refresh --seed。
谁能帮帮我?
【问题讨论】:
标签: php laravel migration laravel-seeding