PHPackages                             yusufalper/laravel-subfolder-migrations - 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. yusufalper/laravel-subfolder-migrations

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

yusufalper/laravel-subfolder-migrations
=======================================

Organize your migrations into subfolders.

v3.0.0(2y ago)351MITPHPPHP ^8.1|^9|^10|^11

Since Sep 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yusufalper/laravel-subfolder-migrations)[ Packagist](https://packagist.org/packages/yusufalper/laravel-subfolder-migrations)[ Docs](https://github.com/yusufalper/laravel-subfolder-migrations)[ RSS](/packages/yusufalper-laravel-subfolder-migrations/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Organize your migrations into subfolders.
=========================================

[](#organize-your-migrations-into-subfolders)

IF YOU DO NOT WANT TO USE PACKAGE FOR THIS FEATURE, YOU CAN USE SIMPLE PROVIDER GIST FROM [HERE](https://gist.github.com/yusufalper/25c0c7e5a347abc09349bbc16817c268)

This package allows you to split database/migrations into subfolders. Especially in large projects, migrations folder may cause headaches.

Now you can turn this:

- database
- - migrations
- - - 2019\_08\_19\_000000\_create\_users\_table.php
- - - 2019\_08\_19\_000000\_create\_user\_xs\_table.php
- - - 2019\_08\_19\_000000\_create\_user\_ys\_table.php
- - - 2019\_08\_19\_000000\_create\_companies\_table.php
- - - 2019\_08\_19\_000000\_create\_company\_zs\_table.php
- - - 2019\_08\_19\_000000\_create\_company\_ts\_table.php

into this:

- database
- - migrations
- - - company\_migrations
- - - - 2019\_08\_19\_000003\_create\_companies\_table.php
- - - - 2019\_08\_19\_000004\_create\_company\_zs\_table.php
- - - - 2019\_08\_19\_000005\_create\_company\_ts\_table.php
- - - user\_migrations
- - - - 2019\_08\_19\_000000\_create\_users\_table.php
- - - - 2019\_08\_19\_000001\_create\_user\_xs\_table.php
- - - - 2019\_08\_19\_000002\_create\_user\_ys\_table.php

Directory order is not important, the only important thing is naming migration files as before. Package will scan all migration folder with all subfolders and will do the migrations in order. In the example above, the first file to run will be "2019\_08\_19\_000000\_create\_users\_table.php".

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

[](#installation)

You can install the package via composer:

```
composer require yusufalper/laravel-subfolder-migrations
```

And you are good to go! You can run your migration commands as just like before. For example:

```
php artisan migrate

```

Note:

If you don't have auto discovery enabled, you should add the following to config/app.php "providers" array:

```
Yusufalper\LaravelSubfolderMigrations\LaravelSubfolderMigrationsServiceProvider::class,

```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Yusuf Alper Sarı](https://github.com/yusufalper)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~306 days

Total

3

Last Release

786d ago

Major Versions

v1.0.0 → v2.0.02024-01-14

v2.0.0 → v3.0.02024-05-10

PHP version history (3 changes)v1.0.0PHP ^8.1

v2.0.0PHP ^8.1|^9|^10

v3.0.0PHP ^8.1|^9|^10|^11

### Community

Maintainers

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

---

Top Contributors

[![yusufalper](https://avatars.githubusercontent.com/u/17886290?v=4)](https://github.com/yusufalper "yusufalper (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

laravelyusufalperlaravel-subfolder-migrations

### Embed Badge

![Health badge](/badges/yusufalper-laravel-subfolder-migrations/health.svg)

```
[![Health](https://phpackages.com/badges/yusufalper-laravel-subfolder-migrations/health.svg)](https://phpackages.com/packages/yusufalper-laravel-subfolder-migrations)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M101](/packages/dedoc-scramble)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

213421.2k2](/packages/wnx-laravel-backup-restore)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[lacodix/laravel-model-filter

A Laravel package to filter, search and sort models with ease while fetching from database.

17558.6k](/packages/lacodix-laravel-model-filter)

PHPackages © 2026

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