Generate a new Laravel database seed file based on data from the existing database table.
v3.0.4
2021-04-22 16:30 UTC
Requires
- php: ^7.2|^8.0
- illuminate/support: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Requires (Dev)
- illuminate/filesystem: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- laravel/framework: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- mockery/mockery: ^1.0.0
- phpunit/phpunit: ^8.0
README
Inverse seed generator (iSeed) is a Laravel Lumen package that provides a method to generate a new seed file based on data from the existing database table. This project is based on orangehill/iseed, all credits to them.
Installation
1. Require with Composer
composer require creative-collisions-limited/iseed
2. Add Service Provider
// '/bootstrap/app.php' $app->register(CreativeCollisionsLimited\Iseed\IseedServiceProvider::class);
Artisan command options
[table_name]
Mandatory parameter which defines which table/s will be used for seed creation. Use CSV notation for multiple tables. Seed file will be generated for each table.
Examples:
php artisan iseed my_table
php artisan iseed my_table,another_table