PHPackages                             joeyrush/better-migrate-seed - 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. joeyrush/better-migrate-seed

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

joeyrush/better-migrate-seed
============================

An alternative migrate:fresh --seed command which allows you to create a group of seeders from your existing data and/or playback a group of seeders

0.3(6y ago)811.3kMITPHP

Since Feb 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/joeyrush/better-migrate-seed)[ Packagist](https://packagist.org/packages/joeyrush/better-migrate-seed)[ RSS](/packages/joeyrush-better-migrate-seed/feed)WikiDiscussions master Synced yesterday

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

Better Migrate Seed
===================

[](#better-migrate-seed)

A wrapper around the `artisan migrate:fresh --seed` command in Laravel with some added quality of life functionality to assist during development.

Overview
--------

[](#overview)

This package allows you to create a snapshot of your database by generating a series of seeders (1 per table, plus a base seeder which calls all of the seeders) which sit within a named sub-directory in your `database/seeds` directory. You can then use these grouped seeders to populate your database from scratch after a fresh migrate - all within the same command.

> You're free to customize the generated seeders, but be aware that if you generate another snapshot with an identical name - the new ones will overwrite the old ones.

### Available Commands

[](#available-commands)

There are 4 commands available with this package:

A step in replacement for `artisan migrate:fresh --seed` with additional functionality to generate seeders and pick which seeders to use after re-migrating. You can pass the `--refresh` flag to use `migrate:refresh` instead of `migrate:fresh` behind the scenes:

```
artisan seed:migrate

```

> The migrate command also comes with a bonus `--include-empty-tables` flag which will produce a seed class for every database table regardless of whether it has any rows or not.

To generate the seeders without having to re-migrate your DB, you can run the following command:

```
artisan seed:generate

```

To delete a set of seeders generated with any of the previous two commands (this will prompt before deletion):

```
artisan seed:delete

```

To rename a set of generated seeders (renames folder/filename/classname and references!)

```
artisan seed:rename

```

### Notes

[](#notes)

The name you supply to the seed generator will have spaces stripped out and be pascal-cased before being used as the sub-folder name and seeder class prefix. If you don't provide a name, it will generate one based on the current UNIX timestamp.

Requirements
------------

[](#requirements)

- Laravel 5.3.8+

Getting Started
---------------

[](#getting-started)

You can install the package via composer:

```
composer require joeyrush/better-migrate-seed

```

Assuming you're on Laravel 5.5+ with auto-package discovery, you should be able to run the commands straight away. If you're rocking an earlier version, you'll have to add the service provider to the "providers" key in `config/app.php`

```
'providers' => [
    ...
    JoeyRush\BetterMigrateSeed\BetterMigrateSeedServiceProvider::class,
]
```

Tests
-----

[](#tests)

Coming soon

Credits
-------

[](#credits)

This package heavily relies on the use of [iSeed by OrangeHill](https://github.com/orangehill/iseed)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~103 days

Total

3

Last Release

2430d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2877168060840e2726bceb94848f35bc6fb7ed606f4d99b8d41d74930f6f5085?d=identicon)[joeyrush](/maintainers/joeyrush)

---

Top Contributors

[![joeyrush](https://avatars.githubusercontent.com/u/17975028?v=4)](https://github.com/joeyrush "joeyrush (17 commits)")

### Embed Badge

![Health badge](/badges/joeyrush-better-migrate-seed/health.svg)

```
[![Health](https://phpackages.com/badges/joeyrush-better-migrate-seed/health.svg)](https://phpackages.com/packages/joeyrush-better-migrate-seed)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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