Database seeds are stored in the /database/seeds directory. You can create a seed using an Artisan command.
php artisan make:seed UserTableSeeder
Alternatively you can create a new class which extends Illuminate\Database\Seeder
. The class must a public function named run()
.