A Laravel package that provides version control for database seeders, similar to Laravel's migration system. This package tracks which seeders have been run and only executes seeders that have been modified by monitoring class content changes.
thetheago/laravel-seeder-versioning is a Laravel package for a laravel package that provides version control for database seeders, similar to laravel's migration system. this package tracks which seeders have been run and only executes seeders that have been modified by monitoring class content changes..
It currently has 1 GitHub stars and 1 downloads on Packagist (latest version v1.1.4).
Install it with composer require thetheago/laravel-seeder-versioning.
Discover more Laravel packages by thetheago
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel package that provides version control for database seeders, similar to Laravel's migration system. This package tracks which seeders have been run and only executes seeders that have been modified by monitoring class content changes.
You can install the package via composer:
composer require thetheago/laravel-seeder-versioning
Publish the package configuration and migrations:
php artisan vendor:publish --tag=seeder-versioning
Run the migrations to create the seeder versioning table:
php artisan migrate
To run your seeders with version control:
php artisan seed:migrate
This command will:
If you want to generate hash versions for your seeders without executing them:
php artisan seed:migrate --hash-only
This is useful for:
The package creates a seeder_versioning table that stores:
When you run seed:migrate, the package:
Contributions are welcome! Please feel free to submit a Pull Request.
This package is open-sourced software licensed under the MIT license.