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

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

bionicmaster/laravel-seeder
===========================

Versioned, environment-based Seeders in Laravel

5.5.1(8y ago)017MITPHPPHP &gt;=7.1.0

Since Mar 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/bionicmaster/laravel-seeder)[ Packagist](https://packagist.org/packages/bionicmaster/laravel-seeder)[ RSS](/packages/bionicmaster-laravel-seeder/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (15)Used By (0)

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

[](#laravelseeder)

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 bionicmaster/laravel-seeder`
- Add `Eighty8\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.1 and Composer installed is bundled with the project to facilitate local development.

To build the image:

```
docker build -t laravel-seeder .

```

To install Composer dependencies:

```
docker run -v "$PWD":/usr/local/src laravel-seeder composer install

```

To run PHPUnit tests:

```
docker run -v "$PWD":/usr/local/src laravel-seeder vendor/bin/phpunit

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 61.7% 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 ~56 days

Recently: every ~51 days

Total

13

Last Release

3039d ago

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

5.4.0PHP &gt;=7.1.0

### Community

Maintainers

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

---

Top Contributors

[![edmundluong](https://avatars.githubusercontent.com/u/2450089?v=4)](https://github.com/edmundluong "edmundluong (58 commits)")[![stevevg](https://avatars.githubusercontent.com/u/2536019?v=4)](https://github.com/stevevg "stevevg (12 commits)")[![edmundluong88](https://avatars.githubusercontent.com/u/29665373?v=4)](https://github.com/edmundluong88 "edmundluong88 (6 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)")[![bionicmaster](https://avatars.githubusercontent.com/u/312215?v=4)](https://github.com/bionicmaster "bionicmaster (3 commits)")[![killmenot](https://avatars.githubusercontent.com/u/119337?v=4)](https://github.com/killmenot "killmenot (2 commits)")

---

Tags

laraveldatadatabaseenvironmentseedingtableversionseederseedproductionstaging

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[eighty8/laravel-seeder

Versioned, environment-based Seeders in Laravel

1857.1k](/packages/eighty8-laravel-seeder)[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)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)

PHPackages © 2026

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