作者:mobiledu2502860057 | 来源:互联网 | 2023-09-05 11:49
Ihaveanexistingusertablewithinformationseededviadb:seedfromUserSeeder.php.Now,Iamadd
I have an existing user table with information seeded via db:seed
from UserSeeder.php. Now, I am adding new product table and want to seed information into product table. How can I prevent Laravel from seeding the UserSeeder into the database, but only the new ProductSeeder being seeded?
我有一个现有的用户表,上面有通过db来种子的信息:来自UserSeeder.php的种子。现在,我正在添加新产品表,并希望将信息添加到产品表中。如何防止Laravel将用户播种到数据库中,而只播种新的产品播种?
Thanks.
谢谢。
2 个解决方案