PHPackages                             lbadger/illuminate-data-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. lbadger/illuminate-data-migrations

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

lbadger/illuminate-data-migrations
==================================

Data Migrations for Laravel

6.0(6y ago)31.5k1[1 issues](https://github.com/lbadger/illuminate-data-migrations/issues)PHP

Since Sep 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lbadger/illuminate-data-migrations)[ Packagist](https://packagist.org/packages/lbadger/illuminate-data-migrations)[ RSS](/packages/lbadger-illuminate-data-migrations/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (10)Used By (0)

illuminate-data-migrations
==========================

[](#illuminate-data-migrations)

Creating data migrations for Laravel. This keeps data out of migrations and leaves it for schema changes only.

Install
-------

[](#install)

composer require lbadger/illuminate-data-migrations

Data Migration Folder
---------------------

[](#data-migration-folder)

Create a folder called "data\_migrations" in the /database folder

Laravel
=======

[](#laravel)

config/database.php
-------------------

[](#configdatabasephp)

```
'data-migrations' => 'data_migrations',

```

config/app.php
--------------

[](#configappphp)

Add these to the 'providers' array

```
\Lbadger\Database\Providers\ArtisanServiceProvider::class,
\Lbadger\Database\Providers\DataMigrationServiceProvider::class,

```

Lumen
=====

[](#lumen)

bootstrap/app.php
-----------------

[](#bootstrapappphp)

```
$app['config']['database.data-migrations'] = 'data_migrations';
$app->register(\Lbadger\Database\Providers\ArtisanServiceProvider::class);
$app->register(\Lbadger\Database\Providers\DataMigrationServiceProvider::class);

```

Custom Stub
-----------

[](#custom-stub)

```
If you would like to use custom stubs, you need to put your stub in the database/stubs directory with the suffix of .stub

```

- Note: You cannot have the same data migration class name as a normal migration

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 58.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 ~203 days

Total

5

Last Release

2402d ago

Major Versions

v1.0.1 → v2.0.02018-01-14

v2.1.0 → 6.02019-12-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5921827?v=4)[Lance Badger](/maintainers/lbadger)[@lbadger](https://github.com/lbadger)

---

Top Contributors

[![lbadger](https://avatars.githubusercontent.com/u/5921827?v=4)](https://github.com/lbadger "lbadger (14 commits)")[![dcaswel](https://avatars.githubusercontent.com/u/20131539?v=4)](https://github.com/dcaswel "dcaswel (10 commits)")

### Embed Badge

![Health badge](/badges/lbadger-illuminate-data-migrations/health.svg)

```
[![Health](https://phpackages.com/badges/lbadger-illuminate-data-migrations/health.svg)](https://phpackages.com/packages/lbadger-illuminate-data-migrations)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)

PHPackages © 2026

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