Laravel5.5 生成测试数据

1、在database/factories/UserFactory.php 中添加

2、在tinker中生成数据

3、数据生成成功

原文地址:https://www.cnblogs.com/lamp01/p/8447609.html