• Stars
    star
    296
  • Rank 140,464 (Top 3 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generate files for Backpack projects

Backpack Generators

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Style CI Total Downloads

Quickly generate Backpack templated Models, Requests, Views and Config files for projects using Backpack for Laravel as their admin panel.

Security updates and breaking changes

Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

Install

Via Composer

composer require --dev backpack/generators

// OPTIONAL: if you would like to change Backpack generated files you can publish the stubs with:
php artisan vendor:publish --tag=backpack-generators-stubs

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

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

Backpack is free for non-commercial use and 69 EUR/project for commercial use. Please see License File and backpackforlaravel.com for more information.

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 & enthusiasm for this. This is what we do. Contact us. Let's see if we can work together.

More Repositories

1

CRUD

Build custom admin panels. Fast!
PHP
2,816
star
2

Base

Until 2018, Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE. Backpack v4 no longer uses this package, they're now built-in - use Backpack/CRUD instead.
PHP
891
star
3

PermissionManager

Admin interface for managing users, roles, permissions, using Backpack CRUD
PHP
481
star
4

BackupManager

Admin interface for managing database and file backups in Backpack for Laravel
PHP
305
star
5

demo

A working demo of Laravel with all Backpack packages installed.
PHP
301
star
6

PageManager

Administer presentation pages in Laravel, using page templates and Backpack\CRUD
PHP
279
star
7

LogManager

An interface to preview, download and delete Laravel log files, using Backpack.
PHP
261
star
8

Settings

Application settings interface for Backpack (for Laravel 6).
PHP
228
star
9

NewsCRUD

An admin panel for news with categories and tags, using Backpack CRUD on Laravel 10
PHP
205
star
10

MenuCRUD

An admin panel for menu items, using Backpack\CRUD on Laravel 6 or 7.
Blade
182
star
11

LangFileManager

A quick interface to edit Laravel language files, for Backpack.
PHP
90
star
12

FileManager

Admin interface for files & folders, using elFinder.
PHP
79
star
13

docs

45
star
14

revise-operation

An admin interface for venturecraft/revisionable - audit log for your Eloquent entries.
PHP
42
star
15

basset

Better asset helpers for Laravel apps.
PHP
36
star
16

community-forum

A workspace to discuss improvement and feature ideas, before they're actually implemented.
25
star
17

theme-tabler

UI for Backpack v6 that uses Tabler and Bootstrap v5.
Blade
16
star
18

activity-log

PHP
13
star
19

download-operation

PHP
10
star
20

medialibrary-uploaders

PHP
8
star
21

language-switcher

Multi language dropdown for Backpack v6
PHP
7
star
22

addons

A place for the Backpack community to talk about possible Backpack add-ons.
5
star
23

theme-coreuiv2

UI that uses CoreUI v2 and Bootstrap v4, provided as a legacy theme for Backpack v6.
Blade
4
star
24

theme-coreuiv4

UI for Backpack v6 that uses CoreUI v4 and Bootstrap v5.
Blade
3
star
25

devtools-issues

Bug reports and feature requests for our closed-source DevTools package
3
star
26

legal-documents

All legal documents for the Backpack organisation. Full transparency.
1
star