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

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

kirankumar/laravel-seeder
=========================

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

v1.0.3(4y ago)021MITPHPPHP &gt;=7.1.0

Since Jan 29Pushed 4y agoCompare

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

READMEChangelog (1)Dependencies (8)Versions (5)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 kirankumar/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.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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

Total

4

Last Release

1535d ago

### Community

Maintainers

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

---

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)")[![KirankumarBaligar](https://avatars.githubusercontent.com/u/91178331?v=4)](https://github.com/KirankumarBaligar "KirankumarBaligar (13 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)")[![SoftHeroes](https://avatars.githubusercontent.com/u/24780408?v=4)](https://github.com/SoftHeroes "SoftHeroes (11 commits)")[![diegovilette](https://avatars.githubusercontent.com/u/13040344?v=4)](https://github.com/diegovilette "diegovilette (5 commits)")[![slampenny](https://avatars.githubusercontent.com/u/7809881?v=4)](https://github.com/slampenny "slampenny (5 commits)")[![gizburdt](https://avatars.githubusercontent.com/u/1470623?v=4)](https://github.com/gizburdt "gizburdt (3 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/kirankumar-laravel-seeder/health.svg)

```
[![Health](https://phpackages.com/badges/kirankumar-laravel-seeder/health.svg)](https://phpackages.com/packages/kirankumar-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)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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