PHPackages                             alasit/gardener - 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. alasit/gardener

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

alasit/gardener
===============

Smart seeders for Laravel. created and developed by gizburdt

5.2.5(9y ago)52245MITPHPPHP &gt;=5.4.0

Since Mar 17Pushed 7y ago2 watchersCompare

[ Source](https://github.com/diego0417/gardener)[ Packagist](https://packagist.org/packages/alasit/gardener)[ RSS](/packages/alasit-gardener/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (6)Used By (0)

Smart seeder for Laravel
========================

[](#smart-seeder-for-laravel)

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?

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.
- Prompts you if your database is in production.
- Allows you to run multiple seeds of the same model/table
- Overrides Laravel's seeding commands. SmartSeeder will fire when you run ```
    php artisan db:seed

    ```

    or ```
    php artisan migrate:refresh --seed

    ```
- You can run a single seed file with the --file option. `php artisan seed:run --file=seed_2015_05_27_030017_UserSeeder`

Use
===

[](#use)

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

seed:runRuns all the seeds in the smartSeeds directory that haven't been run yet.seed:makeMakes a new seed class in the environment you specify.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:installYou don't have to use this... it will be run automatically when you call "seed"Installation
============

[](#installation)

- Add require: `"gizburdt/gardener": "5.2.*"` to your composer.json and run an update to bring it in (or run composer require jlapp/smartseeder).
- Add `Jlapp\SmartSeeder\SmartSeederServiceProvider::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

###  Health Score

31

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3649d ago

### Community

Maintainers

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

---

Top Contributors

[![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)")

---

Tags

laraveldatabaseseedingtableseederseedsmart

### Embed Badge

![Health badge](/badges/alasit-gardener/health.svg)

```
[![Health](https://phpackages.com/badges/alasit-gardener/health.svg)](https://phpackages.com/packages/alasit-gardener)
```

###  Alternatives

[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)[eighty8/laravel-seeder

Versioned, environment-based Seeders in Laravel

1856.2k](/packages/eighty8-laravel-seeder)[kdabrow/seeder-once

Run your laravel seeders only once

20155.8k](/packages/kdabrow-seeder-once)[webparking/laravel-db-rebuild

A laravel package that allows for quick database rebuilds with presets.

448.8k](/packages/webparking-laravel-db-rebuild)[elimuswift/db-exporter

Export your database quickly and easily as a Laravel Migration and all the data as a Seeder class.

364.7k](/packages/elimuswift-db-exporter)

PHPackages © 2026

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