PHPackages                             devig/voyager-bread-generator-updated - 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. devig/voyager-bread-generator-updated

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

devig/voyager-bread-generator-updated
=====================================

Create BREAD from the console using artisan updated

1.0.2(5y ago)020MITPHP

Since May 10Pushed 5y agoCompare

[ Source](https://github.com/devig/voyager-bread-generator-1)[ Packagist](https://packagist.org/packages/devig/voyager-bread-generator-updated)[ RSS](/packages/devig-voyager-bread-generator-updated/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Voyager BREAD generator
-----------------------

[](#voyager-bread-generator)

There is a common issue when we try to deploy local projects to a different environment. Currently, we need to export the database or so, in order to keep all the new BREADs structure across all the environments.

The only way to do that without having to create a database import each time is by creating the migrations, seeds, etc. for each bread.

This allows the developers to create new BREADs from the command line using Artisan.

How to use:
-----------

[](#how-to-use)

This package tries to follow laravel conventions when dealing with classnames. It is recomended that you invoke the command utilising a singluar name for the resource.

Utilising model names that end in 's' can cause issues as the generator relies on Laravel's singular/plural string methods.

### Create a new bread seeder

[](#create-a-new-bread-seeder)

If you have an existing model / table called `list_items` with the corresponding model `App\ListItem`

```
### Create a seeder for an existing model / table
php artisan voyager:bread list_item

### Generates database/seeds/ListItemsBreadSeeder.php
```

You can also generate the model and migration files

```
## Creat a seeder along with a corresponding model and table migration
php artisan voyager:bread list_item --migration --model

### Generates seeder eg: database/seeds/ListItemsBreadSeeder.php
### Generates model class eg: app/ListItem.php
### Generates migration class eg {DATE/TIME}_create_list_items_table.php
```

If a seeder class already exists, you can supply the `--force` flag to overwrite the existing file. Any modifications to this file will be lost.

### Configure the bread seeder

[](#configure-the-bread-seeder)

This command will create a new BooksBreadSeeder file with the basic configuration for a new bread-seed, there you can add/edit all the bread fields. See DataRowsTableSeeder

The seeder starts with 3 example columns - edit, duplicate etc as you see fit. See the [voyager docs](https://voyager.readme.io/docs/bread) for reference.

Everything that can be created in the voyager admin can be created via these seeders, as most of the advanced voyager features translate into json in the 'details' of the input field.

### Running your seeders

[](#running-your-seeders)

In order to run a newly created seeder, you must regenerate your autoloader

```
composer dumpautoload
```

To run a seed for a particular class, run `db:seed` with the `--class` flag.

```
php artisan db:seed --class=ListItemsBreadSeeder
```

To run all seeds..

```
php artisan db:seed
```

If you have generated new menu items as part of your seeding process, you will need to regenerate permissions before you can view them in the admin.

```
php artisan db:seed --class=PermissionRoleTableSeeder
```

You can also do this manually from the admin panel

**Model / Migration considerations**

If you created new model and migration, don't forget to run the migration.

```
php artisan migrate
```

Credits
-------

[](#credits)

- [Muhamed Didovic](https://github.com/muhamed-didovic)
- [Goran Radosevic](https://github.com/gradosevic)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~2 days

Total

2

Last Release

2187d ago

### Community

Maintainers

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

---

Top Contributors

[![muhamed-didovic](https://avatars.githubusercontent.com/u/3872717?v=4)](https://github.com/muhamed-didovic "muhamed-didovic (12 commits)")[![devig](https://avatars.githubusercontent.com/u/2635075?v=4)](https://github.com/devig "devig (1 commits)")

### Embed Badge

![Health badge](/badges/devig-voyager-bread-generator-updated/health.svg)

```
[![Health](https://phpackages.com/badges/devig-voyager-bread-generator-updated/health.svg)](https://phpackages.com/packages/devig-voyager-bread-generator-updated)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

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

Initialize Symfony Console commands from annotated command class methods.

22569.8M18](/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)
