Download the PHP package lanciweb/laravel-make-crud without Composer
On this page you can find all versions of the php package lanciweb/laravel-make-crud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lanciweb/laravel-make-crud
More information about lanciweb/laravel-make-crud
Files in lanciweb/laravel-make-crud
Package laravel-make-crud
Short Description A Laravel Package that allows creation of Model, Migration, Seeder, Views, Routes and resource controller for CRUD operations.
License MIT
Informations about the package laravel-make-crud
Laravel MakeCrud
Laravel MakeCrud is a Laravel Package that helps you create all the files you need for CRUD operations on your models.
Installation
Use composer to install Laravel MakeCrud
Usage
Default command
This command has no options and represent the default behaviour:
Prefix
Adding a prefix to the model (i.e: Admin/Post
) name will result in the following differences:
Api option
Adding the --api
option will result in the following differences:
Picking options
Adding any of the following options (except for --api
) prevents the default behaviour and let you pick manually what you want to generate.
option | alias | result |
---|---|---|
--controller |
-c |
Generates the Resource Controller |
--migration |
-m |
Generates the create table Migration |
--seeder |
-s |
Generates the Seeder |
--factory |
-f |
Generates the Factory |
--policy |
-p |
Generates the Policy |
--requests |
-R |
Generates the Form Request |
--views |
-b |
Generates the Blade views |
--api |
See the Api option section | |
--all |
-a |
Adds all options available (except for the --api ) |
Please note that a model will always be generated
Please not that the
--all
option can be used together with the--api
option.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
MIT