PHPackages                             jamesfreeman/laravel-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. jamesfreeman/laravel-data-migrations

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

jamesfreeman/laravel-data-migrations
====================================

An extension to allow you to separate data migrations from structure migrations

2.0.0(2y ago)02.8kMITPHPPHP ^8.1

Since Feb 9Pushed 2y agoCompare

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

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

Data Migrations for Laravel
===========================

[](#data-migrations-for-laravel)

This extension allows you to separate data migrations from structure migrations.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

With Composer installed, you can then install the extension using the following commands:

```
composer require jamesfreeman/laravel-data-migrations
```

or add

```
...
    "require": {
        "jamesfreeman/laravel-data-migrations": "^2.0"
    }
```

to the `require` section of your `composer.json` file.

Configuration
-------------

[](#configuration)

1. Register the ServiceProvider in your config/app.php service provider list. This step can be skipped in Laravel 5.5+

config/app.php

```
return [
    //other stuff
    'providers' => [
        \JamesFreeman\DataMigrations\DataMigrationsServiceProvider::class,
    ];
];
```

2. Publish the new assets.

```
php artisan vendor:publish --tag=data-migrations
```

This will create the default migrations directory and the config/data-migrations.php file.

Usage
-----

[](#usage)

By default, the table used to store the data migrations is "migrations\_data" table. You can change the table on the config/data-migrations.php file.

The data migrations will be stored in the migrations\_data folder of the database path if no path is specified in the command execution.

The available commands of the package are:

*Create migration command*

```
php artisan make:data-migration [name] [--path=]
```

The first time you use it the data migrations table will be created.

*Run migration command*

```
php artisan migrate-data [--path=]
```

*Rollback migration command*

```
php artisan migrate-data:rollback [--path=]
```

The behavior of the migrations is the same as the regular migrations.

License
-------

[](#license)

Copyright © 2021 José Lorente Martín , Eran Machiels .

Licensed under the MIT license. See LICENSE.txt for details.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

5

Last Release

968d ago

Major Versions

1.2.1 → 2.0.02023-09-16

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec91a132adca26899c1956976241f647e2f8bae33f5eae97d2f6c57d2f1a392?d=identicon)[JamesFreeman](/maintainers/JamesFreeman)

---

Top Contributors

[![jlorente](https://avatars.githubusercontent.com/u/301741?v=4)](https://github.com/jlorente "jlorente (15 commits)")[![EranNL](https://avatars.githubusercontent.com/u/10157169?v=4)](https://github.com/EranNL "EranNL (10 commits)")[![JamesFreeman](https://avatars.githubusercontent.com/u/916500?v=4)](https://github.com/JamesFreeman "JamesFreeman (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![fgibaux](https://avatars.githubusercontent.com/u/1101218?v=4)](https://github.com/fgibaux "fgibaux (1 commits)")[![modernben](https://avatars.githubusercontent.com/u/67608755?v=4)](https://github.com/modernben "modernben (1 commits)")

### Embed Badge

![Health badge](/badges/jamesfreeman-laravel-data-migrations/health.svg)

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

###  Alternatives

[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[aglipanci/laravel-eloquent-case

Adds CASE statement support to Laravel Query Builder.

115157.2k](/packages/aglipanci-laravel-eloquent-case)

PHPackages © 2026

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