PHPackages                             arbitraer/laravel-fresh-seeds - 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. [CLI &amp; Console](/categories/cli)
4. /
5. arbitraer/laravel-fresh-seeds

AbandonedArchivedLibrary[CLI &amp; Console](/categories/cli)

arbitraer/laravel-fresh-seeds
=============================

This package adds the 'fresh' artisan command with an editable default seeder class, so you can call your most important seeds much more quickly.

31.2kPHP

Since May 20Pushed 3y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

A shortcut structure and command for seeder classes
===================================================

[](#a-shortcut-structure-and-command-for-seeder-classes)

[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This Laravel package adds the `php artisan fresh` command with an editable default seeder class, so you can call your most important seeds when running a fresh migration much more quicker.

Installation
------------

[](#installation)

Install via composer

```
composer require arbitraer/laravel-fresh-seeds
```

Configuration
-------------

[](#configuration)

After installation you can publish the config file:

```
php artisan vendor:publish --provider="Arbitraer\FreshSeeds\FreshSeedsServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

To seed the default Laravel database seeder `database/seeders/DatabaseSeeder.php` with a fresh migration:

```
php artisan fresh
```

### Creating a suite

[](#creating-a-suite)

If you find yourself calling different seeders for different cases (testing, demoing or setting up the application) with a fresh migration, you can create dedicated seeder suites in the `app/config/fresh-seeds.php` config file, referencing a seeder class in `database/seeders/` and then run a fast and easy to remember command:

```
...
    'suites' => [
        'basic' => 'DatabaseSeeder',
        'demo'  => 'DemoDatabaseSeeder'
    ],
...
```

Then you can use the `--suite=` or `-s` option with this command to specify the desired seeder suite:

```
php artisan fresh -s demo
```

Everytime you add a new seeder suite you'll have to perform a composer dump autoload:

```
composer dump-autoload
```

### Changing the default suite

[](#changing-the-default-suite)

You can change the default suite to be run when calling `php artisan fresh` by changing the `default_suite` setting in the `fresh-seeds.php` config file or by adding the `SEED_SUITE_DEFAULT` variable to your `.env` file:

```
SEED_SUITE_DEFAULT=demo
```

### Suggested structure

[](#suggested-structure)

It can make sense, to move the **table** seeds into single files within a seperate folder in the `database/seeders/` directory and then call them from your seeder suite classes. This way you can easily reuse them from different suites. For example:

```
.
├── ...
├── database
│   ├── ...
│   ├── ...
│   └── seeders
│      ├── DatabaseSeeder.php
│      ├── DemoDatabaseSeeder.php       # custom seeder suite that calls the required table seeds
│      └── seeds
│           └── PostTableSeeder.php     # a post table seed callable by different seeder suites
│           └── ...
└── ...

```

To get you started with this structure, this package provides some example files and folders according to the examples in the published config file:

```
php artisan vendor:publish --provider="Arbitraer\FreshSeeds\FreshSeedsServiceProvider" --tag="suites"
```

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

[arbiträr](https://arbitraer.de) – Digital agency for web development in Flensburg, Germany

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 76.5% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/03f6b82dfdff9784bfa36c1cbd83d2f98c187dcfe6f1932d22b7c422bade21a8?d=identicon)[larshanskrause](/maintainers/larshanskrause)

![](https://www.gravatar.com/avatar/d9571c63554ce84c1226c3ba845ae02a2e23f233d232bc425f6818fdda38d0d6?d=identicon)[shad0w-rep](/maintainers/shad0w-rep)

---

Top Contributors

[![larshanskrause](https://avatars.githubusercontent.com/u/35800965?v=4)](https://github.com/larshanskrause "larshanskrause (13 commits)")[![persteinhorst](https://avatars.githubusercontent.com/u/6418121?v=4)](https://github.com/persteinhorst "persteinhorst (4 commits)")

### Embed Badge

![Health badge](/badges/arbitraer-laravel-fresh-seeds/health.svg)

```
[![Health](https://phpackages.com/badges/arbitraer-laravel-fresh-seeds/health.svg)](https://phpackages.com/packages/arbitraer-laravel-fresh-seeds)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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