Laravel5.5 生成测试数据

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

2、在tinker中生成数据

3、数据生成成功

 

posted @ 2018-02-13 22:44  郁冬  阅读(728)  评论(0编辑  收藏  举报