1、在database/factories/UserFactory.php 中添加
2、在tinker中生成数据
3、数据生成成功
Laravel5.5 生成测试数据
原文:https://www.cnblogs.com/lamp01/p/8447609.html