library undo-seeder-laravel
A way to rollback seeds in Laravel
killmenot/undo-seeder-laravel
A way to rollback seeds in Laravel
- Monday, May 23, 2016
- by killmenot
- Repository
- 1 Watchers
- 1 Stars
- 2 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Undo Seeder for Laravel
Features
- Allows to have
up and down method for every seed. (Your seeds should be inherited from Intspirit\UndoSeeder\UndoSeeder and override up and down methods)
- Ability to call undo for other seeds using
undo method.
Use
When you install UndoSeeder, the following artisan commands are made available:, (*1)
| db:seed-undo |
Undo seeds in the seeds directory. |
| db:seed-refresh |
Undo seeds run seeds again. |
Installation
- Add require:
"killmenot/undo-seeder-laravel": "dev-master" to your composer.json and run an update to bring it in (or run composer require killmenot/undo-seeder-laravel).
- Add
Intspirit\UndoSeeder\UndoSeederServiceProvider::class to your providers array in app/config/app.php
dev-master
9999999-dev
A way to rollback seeds in Laravel
Sources
Download
MIT
The Requires
by
Alexey Kucherenko