【发布时间】:2021-08-30 14:14:19
【问题描述】:
我在使用 heroku 时遇到问题:“heroku run php artisan db:seed”
$ heroku run php artisan db:seed
Running php artisan db:seed on jaquenews... starting, run.7385 (Free)
Running php artisan db:seed on jaquenews... connecting, run.7385 (Free)
Running php artisan db:seed on jaquenews... up, run.7385 (Free)
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes
yes
Seeding: UsersTableSeeder
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Faker\Factory' not found
【问题讨论】:
-
我尝试将 faker on require 放入 composer.json 但仍然出错
-
你能告诉我们
UsersTableSeeder的内容吗?