Laravel 8 seeder with hasMany add more column than needed

前端 未结 0 2024
忘了有多久
忘了有多久 2021-02-13 16:28

Im trying to use seeder

table1::factory()
->has(table2::class->count(5))
->create();

that code above, should return
1 data in table1

相关标签:
回答
  • 消灭零回复
提交回复
热议问题