PHPackages                             astradevio/laravel-module-smartbread-generator - 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. [Admin Panels](/categories/admin)
4. /
5. astradevio/laravel-module-smartbread-generator

ActiveLibrary[Admin Panels](/categories/admin)

astradevio/laravel-module-smartbread-generator
==============================================

Manage Laravel SmartBread on a laravel modules.

0.1.0(1y ago)025MITPHP

Since Apr 12Pushed 1y agoCompare

[ Source](https://github.com/astradevio/laravel-module-smartbread-generator)[ Packagist](https://packagist.org/packages/astradevio/laravel-module-smartbread-generator)[ Docs](https://github.com/astradev-io/laravel-module-smartbread)[ RSS](/packages/astradevio-laravel-module-smartbread-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

Laravel Module SmartBread
=========================

[](#laravel-module-smartbread)

Package for generating BREADs (Browse, Read, Edit, Add and Delete operations) on [Laravel Modules](https://github.com/nWidart/laravel-modules) from stub files.

Requirements
------------

[](#requirements)

Laravel
-------

[](#laravel)

PHP 8.2+ Laravel 12 Laravel Modules 12 ()

Since version 0.1.0 default stubs files requires 'astradevio/smartform-module' package ()

Install
-------

[](#install)

You can install the package via composer:

```
composer require astradev/laravel-module-smartbread
```

To publish both the `config` and `stubs`:

```
php artisan vendor:publish --provider="astradevio\LaravelModuleSmartBread\SmartBreadServiceProvider"
```

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

[](#configuration)

This will publish a `smartbread.php` config file

This file contains:

```
    'templates' => [
        'Livewire - Volt - Bread Web & API' => 'stubs/smartbread/livewire-volt-full',
    ],
    'ignore_files' => ['module.json'],
    'use_singular' => 'true',
    'routes_pathnames' => [ 'routes/api.php', 'routes/web.php' ]
```

By default, the stubs will be located at stubs/module-smartbread you can add your paths by adding folders and updating the config file.

\###Parameters:###

```
`templates`: templates to be used.
`use_singular`: avoid to use laravel singular / plural standarts.
`routes_pathnames`: neded to merge routes files.
`ignore_files`: ignore creation of files.

```

Usage
-----

[](#usage)

```
php artisan smartbread:generate     : gerenate bread template from stubs.
php artisan smartbread:replace view : update (overwrite) existent views fom a original stubs.
```

Afer running `generate` do a:

`composer dump-autoload`

Path replacements
-----------------

[](#path-replacements)

On stubs directory, stubs file names will be replaced with the following convention.

```
{template?} : is the name of the template you want to use. If you don't provide a name you will be asked to enter one.
{module?} : is the name of a existent module. If you don't provide a name you will be asked to enter one.
{model?}  : is the name of a new model to be created. If you don't provide a name you will be asked to enter one.
{table?}  : is the table's name on the new model to be created.

```

File content replacements
-------------------------

[](#file-content-replacements)

On stubs directory, stubs file content will be replaced with the following convention.

```
{Module} = Module name in PascalCase ie 'ModuleName'.
{module} = Module name in camelCase 'moduleName'.
{module_} = Module name in snake-case with underscores ie 'module_name'.
{module-} = Module name in snake-case with hyphens ie 'module-name'.
{module } = Module name puts space between capital letters ie becomes 'Module Name'.
{module_plural} = Plural module name in PascalCase ie 'ModuleNames'.

{Model} = Model name in Pascal Case ie 'PurchaseOrder'.
{model} = Model name in camelCase ie 'purchaseOrder'.
{model_} = Model name in snake-case with underscores ie 'purchase_order'.
{model-} = model name in snake-case with hyphens ie 'purchase-order'.
{model } = model name puts space between capital letters ie 'PurchaseOrder' becomes 'Purchase Order'.
{model_plural} = Plural module name in PascalCase ie `PurchaseOrders'.

{table} = Table name in snake_case with underscores ie demo-file becomes 'demo_file' or 'demo-files' becomes 'demo_files'.

```

### Config parameters

[](#config-parameters)

```
'ignore-files': ignores overwrite of listed files.
'use-singular': avoids plural effects.
'append_module_to_tablename': appends {module_} _ to {table} varable.

```

Thanks to:
----------

[](#thanks-to)

This work is based on ideas and work of David Carr.

See: dcblogdev/laravel-module-generator ()

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance48

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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

Total

6

Last Release

386d ago

### Community

Maintainers

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

---

Tags

laravelgeneratorcrudcrud generatorlaravel-modulesSmartBread

### Embed Badge

![Health badge](/badges/astradevio-laravel-module-smartbread-generator/health.svg)

```
[![Health](https://phpackages.com/badges/astradevio-laravel-module-smartbread-generator/health.svg)](https://phpackages.com/packages/astradevio-laravel-module-smartbread-generator)
```

###  Alternatives

[crestapps/laravel-code-generator

An intelligent code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages and/or form-requests! It is extremely flexible and customizable to cover many on the use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.

76591.7k1](/packages/crestapps-laravel-code-generator)[dcblogdev/laravel-module-generator

Generate Laravel Modules from a template.

7710.1k1](/packages/dcblogdev-laravel-module-generator)

PHPackages © 2026

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