dev-master
9999999-devMWI Crud setup for Laravel Projects
MIT
The Requires
by Ryan Doss
laravel crud
Wallogit.com
2017 © Pedro Peláez
MWI Crud setup for Laravel Projects
We have put together a CRUD command. It will set up all the core files necessary to create a well put together CRUD. Routes and Views will need to be added separately given the complexity of some applications., (*1)
The files included are:, (*2)
For command help, (*3)
$ php artisan -h make:crud
First argument is the name of the model. Second Argument is the plural version., (*4)
$ php artisan make:crud SalesTerritory SalesTerritories
By default this command will also create a migration for the new model. If you'd prefer to not create the migration use the --no-migration option., (*5)
$ php artisan make:crud SalesTerritory SalesTerritories --no-migration
By default the command will create all of the resources available. If you only need a few resources you may use the --with option. This will prompt for you to specify which resources you need., (*6)
$ php artisan make:crud SalesTerritory SalesTerritories --with
If you wish to create the resources for an API you may use the --api option. This will generate a base ApiController if one does not exist along with an api specific controller on top of the normal controller for the model., (*7)
$ php artisan make:crud SalesTerritory SalesTerritories --api
All of these options may be used in conjunction with one another to produce the desired resources., (*8)
MWI Crud setup for Laravel Projects
MIT
laravel crud