undo-seeder-laravel maintained by killmenot
Description
A way to rollback seeds in Laravel
Author
Last update
2016/05/23 23:28
(dev-master)
License
Downloads
9
Undo Seeder for Laravel
Features
- Allows to have
upanddownmethod for every seed. (Your seeds should be inherited fromIntspirit\UndoSeeder\UndoSeederand overrideupanddownmethods) - Ability to call undo for other seeds using
undomethod.
Use
When you install UndoSeeder, the following artisan commands are made available:
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::classto your providers array in app/config/app.php