Generate files for laravel projects
Latest commit 6d11264 Jan 18, 2017 @tabacitu tabacitu committed on GitHub Merge pull request #21 from juanem1/fix-typo-in-crud-request-command
Remove backslash in command description

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.

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.


Via Composer

$ composer require backpack/generators --dev

You'll only want to use these generators for local development, so you don't want to update the production providers array in config/app.php. Instead, add the provider in app/Providers/AppServiceProvider.php, like so: Add this to your config/app.php, under "providers":

public function register()
    if ($this->app->environment() == 'local') {
        // $this->app->register('Laracasts\Generators\GeneratorsServiceProvider'); // you're using Jeffrey way's generators, too, right?


Open the console and enter one of the commands to generate:

  • Models (available options: --softdelete)
$ php artisan backpack:model
  • Requests
$ php artisan backpack:request
  • Views (available options: --plain)
$ php artisan backpack:view
  • Config files
$ php artisan backpack:config
  • All files for a new Backpack\CRUD interface:
$ php artisan backpack:crud {Entity_name}
  • 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}

Change log

Please see CHANGELOG for more information what has changed recently.


Please see CONTRIBUTING for details.



The MIT License (MIT). Please see License File for more information.