PHPackages                             djunehor/laravel-revert-migration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. djunehor/laravel-revert-migration

ActiveLibrary

djunehor/laravel-revert-migration
=================================

Specify migration file or directory to run. Revert specific migrations.

313PHP

Since Oct 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/djunehor/laravel-revert-migration)[ Packagist](https://packagist.org/packages/djunehor/laravel-revert-migration)[ RSS](/packages/djunehor-laravel-revert-migration/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Revert DB Migrate
=========================

[](#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)

- [Laravel CherryPick DB Migrate](#laravel-custom-db-migrate)
    - [Installation](#installation)
        - [Laravel 5.5 and above](#laravel-55-and-above)
        - [Laravel 5.4 and older](#laravel-54-and-older)
        - [Lumen](#lumen)
    - [Usage](#usage)
        - [Migrate specific file](#migrate-specific-file)
        - [Migrate specific directory](#migrate-specific-directory)
        - [Reverting migrations](#reverting-migrations)
    - [Credits](#credits)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require djunehor/laravel-revert-migration
```

### Laravel 5.5 and above

[](#laravel-55-and-above)

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

### Laravel 5.4 and older

[](#laravel-54-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

[](#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
-----

[](#usage)

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

### Migrate specific file

[](#migrate-specific-file)

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

`php artisan migrate:cherrypick -f 2014_10_12_000000_create_users_table` or `php artisan migrate:custom --file 2014_10_12_000000_create_users_table`

### Migrate specific directory

[](#migrate-specific-directory)

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

`php artisan migrate:cherrypick -d migrations-subfolder` or `php artisan migrate:cherrypick --directory migrations-subfolder`

### Reverting migrations

[](#reverting-migrations)

You can revert migrations inside your project using:

`php artisan migrate:cherrypick -f 2014_10_12_000000_create_users_table -r true` or `php artisan migrate:cherrypick --file 2014_10_12_000000_create_users_table --revert`

Credits
-------

[](#credits)

- [Md. Hasan Sayeed](https://github.com/nilpahar)

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

Thank you for using it.

###  Health Score

19

—

LowBetter than 11% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbee0bc9066fccd4724bd58a4983602da6d74dc69f9700e94aa326b0dfa5fbf9?d=identicon)[djunehor](/maintainers/djunehor)

---

Top Contributors

[![djunehor](https://avatars.githubusercontent.com/u/20708833?v=4)](https://github.com/djunehor "djunehor (8 commits)")

### Embed Badge

![Health badge](/badges/djunehor-laravel-revert-migration/health.svg)

```
[![Health](https://phpackages.com/badges/djunehor-laravel-revert-migration/health.svg)](https://phpackages.com/packages/djunehor-laravel-revert-migration)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
