Copyright: Kaka from https://blog.csdn.net/fangkang7 https://blog.csdn.net/fangkang7/article/details/90702235
author: Kaka
wechat: fangkangfk
To generate a filler, by Artisan command make:seeder
. All frames are positioned generates stuffer database/seeds
directory:
php artisan make:seeder UsersTableSeeder
Then use the command
The first command is to go directly DatabaseSeeser
The second command can customize the filler
php artisan db:seed
php artisan db:seed --class=UsersTableSeeder
database