PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Zacchaeus Bolaji  >  Laravel Migration Rollback  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel Migration Rollback
Revert one or more database migrations
Author: By
Last change:
Date: 2 years ago
Size: 2,453 bytes
 

Contents

Class file image Download

Laravel Revert DB Migrate

Laravel Revert DB Migrate gives you the option to run a specific migration or run migrations in a specified folder. it also allows you revert specific migration(s)

Installation

You can install the package via composer:

composer require djunehor/laravel-revert-migration

Laravel 5.5 and above

The package will automatically register itself, so you can start using it immediately.

Laravel 5.4 and older

In Laravel version 5.4 and older, you have to add the service provider in config/app.php file manually:

'providers' => [
    // ...
    Djunehor\CherryPick\CherryPickMigrateServiceProvider::class,
];

Lumen

After installing the package, you will have to register it in bootstrap/app.php file manually:

// Register Service Providers
    // ...
    $app->register(Djunehor\CherryPick\CherryPickMigrateServiceProvider::class);
];

Usage

After installing the package, you will now see a new `php artisan migrate:cherrypick` command.

Migrate specific file

You can migrate a specific file inside your database/migrations folder using:


### Migrate specific directory

You can migrate a specific directory inside your `database/migrations` folder using:

Reverting migrations

You can revert migrations inside your project using:


## Credits

- Md. Hasan Sayeed

 For any questions, you can reach out to the author of this package, Zacchaeus Bolaji.

 Thank you for using it.
For more information send a message to info at phpclasses dot org.