2017 © Pedro Peláez
 

library generators

Generate files for laravel projects

image

backpack/generators

Generate files for laravel projects

  • Thursday, July 19, 2018
  • by tabacitu
  • Repository
  • 18 Watchers
  • 98 Stars
  • 177,154 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 33 Forks
  • 4 Open issues
  • 25 Versions
  • 16 % Grown

The README.md

Backpack Generators

Latest Version on Packagist Software License Style CI Total Downloads, (*1)

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

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., (*3)

Install

Via Composer, (*4)

``` bash composer require --dev backpack/generators, (*5)


[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:** ```bash php artisan backpack:build
  • Generate all files for one new Backpack\CRUD interface:

``` bash php artisan backpack:crud {Entity_name}, (*6)

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:** ``` bash 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: ``` bash 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) ``` bash php artisan backpack:model {Entity_name}
  • Generate a request

``` bash php artisan backpack:request {Entity_name}, (*7)


- Generate a view (available options: --plain) ``` bash php artisan backpack:view {Entity_name}
  • Generate a config file

``` bash php artisan backpack:config {Entity_name}, (*8)


- Generate a button ``` bash php artisan backpack:button {button_name}
  • Generate a field

``` bash php artisan backpack:field {field_name}, (*9)

// or generate a field starting from another field php artisan backpack:field {field_name} --from={original_field_name}, (*10)


- Generate a column ``` bash 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

``` bash php artisan backpack:filter {filter_name}, (*11)

// or generate a filter starting from another filter php artisan backpack:filter {filter_name} --from={original_filter_name}, (*12)


- Generate a widget ``` bash 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

``` bash php artisan backpack:crud-operation {OperationName}, (*13)


- Generate a custom form operation ``` bash php artisan backpack:crud-form-operation {OperationName}

Change log

Please see CHANGELOG for more information what has changed recently., (*14)

Contributing

Please see CONTRIBUTING for details., (*15)

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., (*16)

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., (*17)

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., (*18)

The Versions

19/07 2018

dev-ajanke-remove-ajax

dev-ajanke-remove-ajax https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

proprietary

The Requires

 

The Development Requires

config generators model request view

07/07 2018

dev-master

9999999-dev https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT proprietary

The Requires

 

The Development Requires

config generators model request view

07/07 2018

1.2.3

1.2.3.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

proprietary

The Requires

 

The Development Requires

config generators model request view

22/06 2018

1.2.1

1.2.1.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

proprietary

The Requires

 

The Development Requires

config generators model request view

22/06 2018

1.2.2

1.2.2.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

proprietary

The Requires

 

The Development Requires

config generators model request view

22/06 2018

1.2.0

1.2.0.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

proprietary

The Requires

 

The Development Requires

config generators model request view

12/06 2018

dev-rename-make-commands

dev-rename-make-commands https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

proprietary

The Requires

 

The Development Requires

config generators model request view

14/02 2018

1.1.12

1.1.12.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

proprietary

The Requires

 

The Development Requires

config generators model request view

13/02 2018

1.1.13

1.1.13.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

proprietary

The Requires

 

The Development Requires

config generators model request view

30/08 2017

1.1.11

1.1.11.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

11/08 2017

1.1.10

1.1.10.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

26/04 2017

1.1.9

1.1.9.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

03/04 2017

1.1.8

1.1.8.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

21/12 2016

1.1.7

1.1.7.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

21/12 2016

1.1.6

1.1.6.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

05/12 2016

dev-overwrites

dev-overwrites https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

05/12 2016

dev-models-migrations

dev-models-migrations https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

02/12 2016

1.1.5

1.1.5.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

25/10 2016

1.1.4

1.1.4.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

31/07 2016

1.1.3

1.1.3.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

config generators model request view

31/07 2016

1.1.2

1.1.2.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

config generators model request view

30/07 2016

1.1.1

1.1.1.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

config generators model request view

22/05 2016

1.1.0

1.1.0.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

config generators model request view

22/05 2016

1.0.1

1.0.1.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

config generators model request view

09/03 2016

1.0.0

1.0.0.0 https://github.com/laravel-backpack/generators

Generate files for laravel projects

  Sources   Download

MIT

The Requires

 

config generators model request view