karl456 / laravel-incremental-seeders
Incremental Seeders for Laravel
dev-main
2023-07-01 21:57 UTC
Requires
- php: ^8.0
- laravel/framework: ^10.0
This package is auto-updated.
Last update: 2024-11-30 02:33:31 UTC
README
A Laravel package for incremental seeders
Installation
composer require karl456/laravel-incremental-seeders
You can publish the config file with:
php artisan vendor:publish --provider="Karl456\IncrementalSeeders\IncrementalSeederServiceProvider"
Usage
There are two commands to get you going
php artisan make:incremental-seeder {SEEDER NAME}
This will create a seeder file for you to update just like you would with a normal seeder.
php artisan db:incremental-seed
This will run any seeders which have not previously been run and update the database table accordingly.