2020-05-13
2020-06-22 本文已影响0人
清欢point
执行数据库迁徙,生成伪数据
1.接着前面的步骤,我们开始执行数据库迁徙.命令是:php artisan migrate


2.创建TodoFactory生成伪数据
创建TodoSeeder填充数据
并在其中引用factory生成10条伪数据


1.接着前面的步骤,我们开始执行数据库迁徙.命令是:php artisan migrate
2.创建TodoFactory生成伪数据
创建TodoSeeder填充数据
并在其中引用factory生成10条伪数据