killmenot / undo-seeder-laravel
A way to rollback seeds in Laravel
dev-master
2016-05-23 21:28 UTC
Requires
- php: >=5.5.9
- illuminate/console: 5.1.*
- illuminate/database: 5.1.*
This package is not auto-updated.
Last update: 2024-11-21 01:10:19 UTC
README
Features
- Allows to have
up
anddown
method for every seed. (Your seeds should be inherited fromIntspirit\UndoSeeder\UndoSeeder
and overrideup
anddown
methods) - Ability to call undo for other seeds using
undo
method.
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::class
to your providers array in app/config/app.php