PHPackages                             lucaterribili/laravel-seeder - 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. lucaterribili/laravel-seeder

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

lucaterribili/laravel-seeder
============================

Versioned, environment-based Seeders in Laravel. Used while original does not update to Laravel 5.7

v9.0.0(4y ago)01201MITPHP

Since Mar 17Pushed 4y agoCompare

[ Source](https://github.com/lucaterribili/laravel-seeder)[ Packagist](https://packagist.org/packages/lucaterribili/laravel-seeder)[ RSS](/packages/lucaterribili-laravel-seeder/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (7)Versions (30)Used By (0)

LaravelSeeder
=============

[](#laravelseeder)

[![Build Status](https://camo.githubusercontent.com/69b15b3998aa2d33a6c97dd42ebb97cdd985461b1265edcfb01ecd7a83e193a8/68747470733a2f2f7472617669732d63692e6f72672f656967687479382f6c61726176656c2d7365656465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/eighty8/laravel-seeder)

Seeding as it is currently done in Laravel is intended only for dev builds, but what if you're iteratively creating your database and want to constantly flush it and repopulate it during development?

What if you want to seed a production database with different data from what you use in development? What if you want to seed a table you've added to a database that is currently in production with new data?

LaravelSeeder takes the database migration features in Laravel and extends them to database seeders, making them "migratable". All of the functionality you have grown accustomed to with Laravel migrations have been mirrored and behave similarly for seeders.

Requirements
============

[](#requirements)

- Laravel &gt;= 5.4
- PHP &gt;= 7.1

Installation
============

[](#installation)

- Run `composer require eighty8/laravel-seeder`
- Add `LucaTerribili\LaravelSeeder\SeederServiceProvider::class` to your providers array in `app/config/app.php`
- Run `php artisan vendor:publish` to push config files to your config folder if you want to override the name of the seeds folder or the name of the table where seeds are stored

Features
========

[](#features)

- Allows you to seed databases in different environments with different values.
- Allows you to "version" seeds the same way that Laravel currently handles migrations. Running `php artisan seed` will only run seeds that haven't already been run.
- Allows you to run multiple seeds of the same model/table
- Prompts you if your database is in production

Usage
=====

[](#usage)

When you install LaravelSeeder, various artisan commands are made available to you which use the same methodology you're used to using with Migrations.

seedRuns all the seeds in the "seeders" directory that haven't been run yet.seed:rollbackRollback doesn't undo seeding (which would be impossible with an auto-incrementing primary key). It just allows you to re-run the last batch of seeds.seed:resetResets all the seeds.seed:refreshResets and re-runs all seeds.seed:statusGets the status of each migratable seeder.seed:makeMakes a new seed class in the environment you specify.seed:installYou don't have to use this... it will be run automatically when you call "seed"Local Development
=================

[](#local-development)

A Dockerfile with PHP 7.2, XDebug and Composer installed is bundled with the project to facilitate local development.

To easily bring up the local development environment, use the Docker Compose configuration:

```
docker-compose up -d --build

```

By default, the entrypoint script will install the Composer dependencies for you.

To run the test suite, execute the following:

```
docker-compose exec laravel-seeder test.sh

```

To run the code coverage suite, execute the following:

```
docker-compose exec laravel-seeder code-coverage.sh

```

Happy testing!

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity74

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

Recently: every ~157 days

Total

26

Last Release

1587d ago

Major Versions

v5.10.1 → v6.0.02020-10-05

v6.0.1 → v9.0.02022-02-26

PHP version history (2 changes)5.2.0PHP &gt;=5.4.0

5.4.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/54412648?v=4)[Luca Terribili](/maintainers/lucaterribili)[@lucaterribili](https://github.com/lucaterribili)

---

Top Contributors

[![edmundluong](https://avatars.githubusercontent.com/u/2450089?v=4)](https://github.com/edmundluong "edmundluong (58 commits)")[![edmundluong88](https://avatars.githubusercontent.com/u/29665373?v=4)](https://github.com/edmundluong88 "edmundluong88 (25 commits)")[![diegohq](https://avatars.githubusercontent.com/u/1486939?v=4)](https://github.com/diegohq "diegohq (13 commits)")[![stevevg](https://avatars.githubusercontent.com/u/2536019?v=4)](https://github.com/stevevg "stevevg (12 commits)")[![slampenny](https://avatars.githubusercontent.com/u/7809881?v=4)](https://github.com/slampenny "slampenny (5 commits)")[![diegovilette](https://avatars.githubusercontent.com/u/13040344?v=4)](https://github.com/diegovilette "diegovilette (5 commits)")[![gizburdt](https://avatars.githubusercontent.com/u/1470623?v=4)](https://github.com/gizburdt "gizburdt (3 commits)")[![lucaterribili](https://avatars.githubusercontent.com/u/54412648?v=4)](https://github.com/lucaterribili "lucaterribili (2 commits)")[![killmenot](https://avatars.githubusercontent.com/u/119337?v=4)](https://github.com/killmenot "killmenot (2 commits)")[![daniele-pasqui](https://avatars.githubusercontent.com/u/43447756?v=4)](https://github.com/daniele-pasqui "daniele-pasqui (1 commits)")

---

Tags

laraveldatadatabaseenvironmentseedingtableversionseederseedproductionstaging

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lucaterribili-laravel-seeder/health.svg)

```
[![Health](https://phpackages.com/badges/lucaterribili-laravel-seeder/health.svg)](https://phpackages.com/packages/lucaterribili-laravel-seeder)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M186](/packages/laravel-ai)[eighty8/laravel-seeder

Versioned, environment-based Seeders in Laravel

1858.8k](/packages/eighty8-laravel-seeder)[illuminate/queue

The Illuminate Queue package.

21332.6M1.5k](/packages/illuminate-queue)[jlapp/smart-seeder

Smart Seeder adds the same methology to seeding that is currently used with migrations in order to let you seed in batches, seed to production databases or other environments, and to rerun seeds without wiping out your data.

1903.1k](/packages/jlapp-smart-seeder)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

442.1k](/packages/itpathsolutions-dbstan)

PHPackages © 2026

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