Seed
Create, apply and rollback seeds using the Elemental CLI.
Create a seeder
The seeder will be created in the seeds_dir
specified in the configuration file. By default, this is database/seeds
.
elemental seed create <seeder_name>
Run seeders
Run all pending seeds. This will create a changelog collection in the database if it does not exist. By default, this is changelog
.
elemental seed up
Rollback seeders
Rollback the last seed. This will remove the last entry in the changelog collection.
elemental seed down