多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### 1.创建数据填充文件 ``` php artisan make:seeder AdminSeeder ``` ![](https://img.kancloud.cn/c1/3f/c13f4e1ddaa574e66df3c06b18181fa4_1078x406.png) #### 修改模型 ![](https://img.kancloud.cn/e9/ff/e9ff11d762604e3f91d03f1dabe8fb07_1356x362.png) ### 2.生成数据工厂 ``` php artisan make:factory AdminFactary -m Models/Admin ``` ![](https://img.kancloud.cn/c6/a7/c6a7436351a79a2ccfc3ad51132cdfc7_1607x380.png) ![](https://img.kancloud.cn/8f/e0/8fe074cf5a83a0992f348061225ebc32_1582x435.png) ![](https://img.kancloud.cn/d9/72/d972aa27a1a43d454df3d0d884054bf6_1603x423.png) ### 3.修改调度器 ![](https://img.kancloud.cn/61/e1/61e10f7e91dfb833591d2a3af120f34b_1473x227.png) ### 4.执行生成数据 ~~~ php artisan db:seed ~~~ ![](https://img.kancloud.cn/65/73/6573334b5afc8918fe09f384f364013c_376x65.png)