backpack / generators
Generate files for laravel projects
Installs: 1 914 299
Dependents: 27
Suggesters: 13
Security: 0
Stars: 315
Watchers: 18
Forks: 64
Open Issues: 12
Requires
- backpack/crud: ^6.0
- dev-main
- v6.x-dev
- 4.1.x-dev
- v4.0.7
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.x-dev
- v3.3.17
- 3.3.16
- v3.3.15
- 3.3.14
- v3.3.13
- 3.3.12
- v3.3.11
- v3.3.10
- v3.3.9
- v3.3.8
- v3.3.7
- v3.3.6
- v3.3.5
- v3.3.4
- v3.3.3
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.2
- v3.2.1
- 3.2.0
- v3.1.17
- v3.1.16
- v3.1.15
- v3.1.14
- v3.1.13
- v3.1.12
- v3.1.11
- v3.1.10
- v3.1.9
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.1
- 3.0.0
- v2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- dev-update-filter-stub
- dev-backpack-build-fix
- dev-force-overwrite
- dev-use-namespace
- dev-generate_nested_controllers_and_models
- dev-mongodb-support
- dev-load-models-by-namespace
- dev-cmd-new-field
- dev-AJanke-ModelLocate
- dev-fix-inner-single-slash
- dev-upgrade
- dev-rename-make-commands
- dev-models-migrations
This package is auto-updated.
Last update: 2024-12-13 10:32:25 UTC
README
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 6-12 months.
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
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.