killmenot / undo-seeder-laravel by killmenot

A way to rollback seeds in Laravel
9
15
3
Package Data
Maintainer Username: killmenot
Maintainer Contact: alexey@intspirit.com (Alexey Kucherenko)
Package Create Date: 2015-11-17
Package Last Update: 2016-05-23
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-25 15:04:59
Package Statistics
Total Downloads: 9
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 15
Total Watchers: 3
Total Forks: 8
Total Open Issues: 0

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:

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