Package Data | |
---|---|
Maintainer Username: | DevMcC |
Maintainer Contact: | sinbox.c@gmail.com (DevMcC) |
Package Create Date: | 2017-06-08 |
Package Last Update: | 2018-08-14 |
Home Page: | https://packagist.org/packages/devmcc/laravel-partial-seeder |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:00:52 |
Package Statistics | |
---|---|
Total Downloads: | 470 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 1 |
Total Forks: | 4 |
Total Open Issues: | 0 |
Only seed what you haven't seeded yet.
This packages extends the seeding functionality with the addition of history control. This allows you to only run the seeders that you haven't run yet.
Install this package with the following command:
composer require devmcc/laravel-partial-seeder
Add the following line in providers
, in the file config/app.php
:
DevMcC\LaravelPartialSeeder\ServiceProvider::class,
The following is a documentation about all available commands:
php artisan prtl-seeder:install [options]
Creates the partial_seeds_history
table
Standard Artisan command options.
php artisan prtl-seeder:status [options]
Show the status of each partial seeder
Standard Artisan command options.
php artisan prtl-seeder:seed [options]
Seed the database with history controlled records
Standard Artisan command options.
The database connection to seed
Force the operation to run when in production
php artisan make:prtl-seeder <name> [options]
Create a new partial seeder class
The name of the class
Standard Artisan command options.
The created seeder is added into the partial_seeds
directory, in the database directory (database
).