PHPackages                             jkg/backpack-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jkg/backpack-generators

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jkg/backpack-generators
=======================

Generate files for laravel projects

012PHP

Since Oct 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/GohilJaykumar/Backpack-Generators)[ Packagist](https://packagist.org/packages/jkg/backpack-generators)[ RSS](/packages/jkg-backpack-generators/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)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)[![Build Status](https://camo.githubusercontent.com/f95806ad8bc70f4940bced4808c746ae13785e48f25c76336f9198d9cfa815d6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6261636b7061636b2f67656e657261746f72732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-backpack/generators)[![Coverage Status](https://camo.githubusercontent.com/9ed63637ea705e4bb2f0ffec0c8aa32ca9728d9e3c15453bdb0ae32fe1bdb93d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6261636b7061636b2f67656e657261746f72732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-backpack/generators/code-structure)[![Quality Score](https://camo.githubusercontent.com/b147216a5e482bd687c765728346366d56e7b9c3ae0c78f02b0b295afbfcc90b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6261636b7061636b2f67656e657261746f72732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-backpack/generators)[![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 as their admin panel.

Install
-------

[](#install)

Via Composer

```
composer require jkg/backpack-generators
```

```
php artisan backpack:install
```

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}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/c114ec0bde58e9ed64dad06565836e1f5795149af7b75895f23bc9585c4d7a15?d=identicon)[GohilJaykumar](/maintainers/GohilJaykumar)

---

Top Contributors

[![gohiljaykumartechnomark](https://avatars.githubusercontent.com/u/114921560?v=4)](https://github.com/gohiljaykumartechnomark "gohiljaykumartechnomark (5 commits)")

### Embed Badge

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

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

###  Alternatives

[bentools/cartesian-product

A simple, low-memory footprint function to generate all combinations from a multi-dimensionnal array.

87943.2k19](/packages/bentools-cartesian-product)[bonami/collections

Collections library with focus on immutability and functional approach

43165.6k1](/packages/bonami-collections)[mage-os/module-meta-robots-tag

NoIndex NoFollow NoArchive Tag extension

1016.1k](/packages/mage-os-module-meta-robots-tag)

PHPackages © 2026

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