PHPackages                             tannhatcms/generators - 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. [Templating &amp; Views](/categories/templating)
4. /
5. tannhatcms/generators

ActiveLibrary[Templating &amp; Views](/categories/templating)

tannhatcms/generators
=====================

Generate files for laravel projects

4.0.8(6mo ago)03proprietaryPHP

Since Mar 9Pushed 6mo agoCompare

[ Source](https://github.com/TanNhatCMS/Laravel-Backpack-Generators)[ Packagist](https://packagist.org/packages/tannhatcms/generators)[ Docs](https://github.com/laravel-backpack/generators)[ RSS](/packages/tannhatcms-generators/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (101)Used By (0)

Backpack Generators
===================

[](#backpack-generators)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bd402e2a86b1a200c308c434fff10f33735350df244b1be87b613ef0994c35c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261636b7061636b2f67656e657261746f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/backpack/generators)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Style CI](https://camo.githubusercontent.com/9e3ce1e73b78fd0e4fed3ef2d73ccfaf75a607a3907e99c7711a98cfec9621e6/68747470733a2f2f7374796c6563692e696f2f7265706f732f35333439303934312f736869656c64)](https://styleci.io/repos/53490941)[![Total Downloads](https://camo.githubusercontent.com/002cd6a691d8696b50de136e40e3f22c55b75c99966be56ec569aeb4e2a0b696/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6261636b7061636b2f67656e657261746f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/backpack/generators)

Quickly generate Backpack templated Models, Requests, Views and Config files for projects using [Backpack for Laravel](https://backpackforlaravel.com) as their admin panel.

> ### Security updates and breaking changes
>
> [](#security-updates-and-breaking-changes)
>
> Please **[subscribe to the Backpack Newsletter](http://backpackforlaravel.com/newsletter)** so you can find out about any security updates, breaking changes or major features. We send an email every 6-12 months.

Install
-------

[](#install)

Via Composer

```
composer require --dev backpack/generators
```

\[HOT TIP\] To change what files get generated, you can publish the stubs with `php artisan vendor:publish --tag=backpack-generators-stubs`. Any files you generate afterwards will start from your stubs, instead of the default ones.

Usage
-----

[](#usage)

Open the console and enter one of the commands:

- **Generate Backpack\\CRUD interfaces for all Eloquent models that don't already have one:**

```
php artisan backpack:build
```

- **Generate all files for one new Backpack\\CRUD interface:**

```
php artisan backpack:crud {Entity_name}

# Use singular, either PascalCase, snake_case or kebab-case.
# This will create a Model if there isn't one, or add
# our CrudTrait to the model if it already exists.
```

- **Generate all files for a custom admin panel page:**

```
php artisan backpack:page {PageName}

# You can use either PascalCase, snake_case or kebab-case.
# This will generate you a Controller, a view and a route.
```

- Generate a new Backpack\\CRUD file:

```
php artisan backpack:crud-controller {Entity_name}
php artisan backpack:crud-model {Entity_name}
php artisan backpack:crud-request {Entity_name}
```

- Generate a model (available options: --softdelete)

```
php artisan backpack:model {Entity_name}
```

- Generate a request

```
php artisan backpack:request {Entity_name}
```

- Generate a view (available options: --plain)

```
php artisan backpack:view {Entity_name}
```

- Generate a config file

```
php artisan backpack:config {Entity_name}
```

- Generate a button

```
php artisan backpack:button {button_name}
```

- Generate a field

```
php artisan backpack:field {field_name}

// or generate a field starting from another field
php artisan backpack:field {field_name} --from={original_field_name}
```

- Generate a column

```
php artisan backpack:column {column_name}

// or generate a column starting from another column
php artisan backpack:column {column_name} --from={original_column_name}
```

- Generate a filter

```
php artisan backpack:filter {filter_name}

// or generate a filter starting from another filter
php artisan backpack:filter {filter_name} --from={original_filter_name}
```

- Generate a widget

```
php artisan backpack:widget {widget_name}

// or generate a widget starting from another widget
php artisan backpack:widget {widget_name} --from={original_widget_name}
```

- Generate a custom operation

```
php artisan backpack:crud-operation {OperationName}
```

- Generate a custom form operation

```
php artisan backpack:crud-form-operation {OperationName}
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Cristian Tone](http://updivision.com)
- [Cristian Tabacitu](http://tabacitu.ro)
- [All Contributors](../../contributors)

License
-------

[](#license)

Backpack is free for non-commercial use and 69 EUR/project for commercial use. Please see [License File](LICENSE.md) and [backpackforlaravel.com](https://backpackforlaravel.com/#pricing) for more information.

Hire us
-------

[](#hire-us)

We've spend more than 50.000 hours creating, polishing and maintaining administration panels on Laravel. We've developed e-Commerce, e-Learning, ERPs, social networks, payment gateways and much more. We've worked on admin panels *so much*, that we've created one of the most popular software in its niche - just from making public what was repetitive in our projects.

If you are looking for a developer/team to help you build an admin panel on Laravel, look no further. You'll have a difficult time finding someone with more experience &amp; enthusiasm for this. This is *what we do*. [Contact us](https://backpackforlaravel.com/need-freelancer-or-development-team). Let's see if we can work together.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance69

Regular maintenance activity

Popularity3

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 58% 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 ~42 days

Recently: every ~156 days

Total

85

Last Release

182d ago

Major Versions

1.2.7 → 2.0.02019-09-12

v2.0.7 → 3.0.02020-05-06

3.0.0 → 4.1.x-dev2020-05-08

3.3.16 → v6.x-dev2023-07-01

v3.x-dev → v4.0.22023-07-24

PHP version history (3 changes)1.0.0PHP &gt;=5.6.0

1.0.1PHP &gt;=5.5.0

3.3.14PHP ^7.4|^8.0

### Community

Maintainers

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

---

Top Contributors

[![tabacitu](https://avatars.githubusercontent.com/u/1032474?v=4)](https://github.com/tabacitu "tabacitu (240 commits)")[![promatik](https://avatars.githubusercontent.com/u/1838187?v=4)](https://github.com/promatik "promatik (43 commits)")[![pxpm](https://avatars.githubusercontent.com/u/7188159?v=4)](https://github.com/pxpm "pxpm (39 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (28 commits)")[![karandatwani92](https://avatars.githubusercontent.com/u/8214221?v=4)](https://github.com/karandatwani92 "karandatwani92 (15 commits)")[![iMokhles](https://avatars.githubusercontent.com/u/1247248?v=4)](https://github.com/iMokhles "iMokhles (8 commits)")[![shadowbane](https://avatars.githubusercontent.com/u/6396154?v=4)](https://github.com/shadowbane "shadowbane (6 commits)")[![maurohmartinez](https://avatars.githubusercontent.com/u/33960976?v=4)](https://github.com/maurohmartinez "maurohmartinez (5 commits)")[![AbbyJanke](https://avatars.githubusercontent.com/u/487798?v=4)](https://github.com/AbbyJanke "AbbyJanke (3 commits)")[![pavoltanuska](https://avatars.githubusercontent.com/u/4980667?v=4)](https://github.com/pavoltanuska "pavoltanuska (3 commits)")[![siberfxweb](https://avatars.githubusercontent.com/u/163915339?v=4)](https://github.com/siberfxweb "siberfxweb (2 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")[![OwenMelbz](https://avatars.githubusercontent.com/u/1094740?v=4)](https://github.com/OwenMelbz "OwenMelbz (2 commits)")[![egyjs](https://avatars.githubusercontent.com/u/12745270?v=4)](https://github.com/egyjs "egyjs (2 commits)")[![operagxoksana](https://avatars.githubusercontent.com/u/122114536?v=4)](https://github.com/operagxoksana "operagxoksana (2 commits)")[![o15a3d4l11s2](https://avatars.githubusercontent.com/u/934385?v=4)](https://github.com/o15a3d4l11s2 "o15a3d4l11s2 (1 commits)")[![votintsev](https://avatars.githubusercontent.com/u/3229523?v=4)](https://github.com/votintsev "votintsev (1 commits)")[![Piterden](https://avatars.githubusercontent.com/u/5930429?v=4)](https://github.com/Piterden "Piterden (1 commits)")[![pleone](https://avatars.githubusercontent.com/u/1419070?v=4)](https://github.com/pleone "pleone (1 commits)")[![errogaht](https://avatars.githubusercontent.com/u/6324265?v=4)](https://github.com/errogaht "errogaht (1 commits)")

---

Tags

requestconfigmodelviewgenerators

### Embed Badge

![Health badge](/badges/tannhatcms-generators/health.svg)

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

###  Alternatives

[backpack/generators

Generate files for laravel projects

3122.6M18](/packages/backpack-generators)[deefour/presenter

Presenters/Decorators for PHP Objects

122.5k](/packages/deefour-presenter)

PHPackages © 2026

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