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

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

jlorente/laravel-data-migrations
================================

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

2.0.2(1y ago)34182.4k—7%101MITPHPPHP &gt;=7.4.0

Since Feb 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jlorente/laravel-data-migrations)[ Packagist](https://packagist.org/packages/jlorente/laravel-data-migrations)[ RSS](/packages/jlorente-laravel-data-migrations/feed)WikiDiscussions master Synced 1mo ago

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

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:

**NOTE:** Until laravel 7.x use version 1.x. From laravel 8.0 and later use 2.x

```
$ php composer.phar require jlorente/laravel-data-migrations
```

or add

```
...
    "require": {
        "jlorente/laravel-data-migrations": "*"
    }
```

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' => [
        //other stuff
        \Jlorente\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 firts 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 © 2018 José Lorente Martín .

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

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance40

Moderate activity, may be stable

Popularity45

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~187 days

Recently: every ~371 days

Total

14

Last Release

576d ago

Major Versions

1.1.5 → 2.0.02022-02-02

PHP version history (2 changes)1.1.0PHP &gt;=7.0.0

2.0.0PHP &gt;=7.4.0

### Community

Maintainers

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

---

Top Contributors

[![jlorente](https://avatars.githubusercontent.com/u/301741?v=4)](https://github.com/jlorente "jlorente (19 commits)")[![fgibaux](https://avatars.githubusercontent.com/u/1101218?v=4)](https://github.com/fgibaux "fgibaux (1 commits)")[![jeffhuys](https://avatars.githubusercontent.com/u/2276233?v=4)](https://github.com/jeffhuys "jeffhuys (1 commits)")

---

Tags

data-migrationlaravelmigrations

### Embed Badge

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

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[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)

PHPackages © 2026

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