laravel
This is an old revision of the document!
Seeders Laravel
Introduction
Laravel includes the ability to seed your database with test data using seed classes. All seed classes are stored in the database/seeders directory. By default, a DatabaseSeeder class is defined for you. From this class, you may use the call method to run other seed classes, allowing you to control the seeding order.
Writing Seeders
To generate a seeder, execute the `make:seeder` Artisan command. All seeders generated by the framework will be placed in the database/seeders directory:
php artisan make:seeder UserSeeder
laravel.1608749647.txt.gz · Last modified: 2023/09/14 06:06 (external edit)