📜  laravel 工厂关系数据 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:43.434000             🧑  作者: Mango

代码示例2
For Laravel version 7.* and less
factory(App\User::class, 3)->make();

Use create method to persist them to the database:
factory(App\User::class, 3)->create();