PHPackages                             sayeed/custom-migrate - 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. [Database &amp; ORM](/categories/database)
4. /
5. sayeed/custom-migrate

ActiveLibrary[Database &amp; ORM](/categories/database)

sayeed/custom-migrate
=====================

Custom migrate in laravel. You can individual file migrate here

1.0.3(7y ago)2126.0k6[1 issues](https://github.com/nilpahar/custom-migration/issues)[1 PRs](https://github.com/nilpahar/custom-migration/pulls)MITPHP

Since Oct 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nilpahar/custom-migration)[ Packagist](https://packagist.org/packages/sayeed/custom-migrate)[ RSS](/packages/sayeed-custom-migrate/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

Laravel Custom DB Migrate
=========================

[](#laravel-custom-db-migrate)

Laravel Custom DB Migrate allows fine grain control of migrations inside your Laravel or Lumen application. You can choose which migration files - or groups of files inside the directory - get migrated to the database.

- [Laravel Custom 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)
        - [Refreshing migrations](#refreshing-migrations)
    - [Credits](#credits)

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

[](#installation)

You can install the package via composer:

```
composer require sayeed/custom-migrate
```

### 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' => [
    // ...
    Sayeed\CustomMigrate\CustomMigrateServiceProvider::class,
];
```

### Lumen

[](#lumen)

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

```
// Register Service Providers
    // ...
    $app->register(Sayeed\CustomMigrate\CustomMigrateServiceProvider::class);
];
```

Usage
-----

[](#usage)

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

### Migrate specific file

[](#migrate-specific-file)

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

`php artisan migrate:custom -f 2018_10_14_054732_create_tests_table`

Alternatively, you can use the longform version:

`php artisan migrate:custom --file 2018_10_14_054732_create_tests_table`

### Migrate specific directory

[](#migrate-specific-directory)

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

`php artisan migrate:custom -d migrations-subfolder`

Alternatively, you can use the longform version:

`php artisan migrate:custom --directory migrations-subfolder`

### Refreshing migrations

[](#refreshing-migrations)

You can refresh migrations inside your project using:

`php artisan migrate:custom -r`

Alternatively, you can use the longform version:

`php artisan migrate:custom --refresh`

Credits
-------

[](#credits)

- [Md. Hasan Sayeed](https://github.com/jbhasan)
- [Gal Jakic](https://github.com/morpheus7CS)

For any questions, you can reach out to the author of this package, Md. Hasan Sayeed.

Thank you for using it.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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.

###  Release Activity

Cadence

Every ~10 days

Total

4

Last Release

2740d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ef216b5d931db98e01ed56ef179585d4ce5126ccc6a0f1b14ff9531315a9021?d=identicon)[nilpahar](/maintainers/nilpahar)

---

Top Contributors

[![jbhasan](https://avatars.githubusercontent.com/u/20739060?v=4)](https://github.com/jbhasan "jbhasan (15 commits)")[![morpheus7CS](https://avatars.githubusercontent.com/u/8884582?v=4)](https://github.com/morpheus7CS "morpheus7CS (3 commits)")

---

Tags

migrationdatabasemigratespecific

### Embed Badge

![Health badge](/badges/sayeed-custom-migrate/health.svg)

```
[![Health](https://phpackages.com/badges/sayeed-custom-migrate/health.svg)](https://phpackages.com/packages/sayeed-custom-migrate)
```

###  Alternatives

[odan/phinx-migrations-generator

Migration generator for Phinx

235847.8k23](/packages/odan-phinx-migrations-generator)[bizley/migration

Migration generator for Yii 2.

297374.3k11](/packages/bizley-migration)[lulco/phoenix

Database Migrations for PHP

180329.4k4](/packages/lulco-phoenix)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[erjanmx/laravel-migrate-check

A command to check for pending migrations. Exits with non-zero code if there are any

54273.8k1](/packages/erjanmx-laravel-migrate-check)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)

PHPackages © 2026

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