KMA resource generator used to generate resourcefull controller with views and form controller
kma-gen:resources <ModelName> --layout=<app-layout> --prefix=<route-prefix> --view-path=<resourcefull-blade-file-path> --namespace=<controller-namespace>
Give Models Name for resource
--layout
is optional argument.
You can set your custom layout for reasource blade files by using this argument.
Default Value : layouts.app
--prefix
is optional argument.
You can set route prefix for resource route action.
Default Value : Model Name in lower case
--view-path
is optional argument.
You can put all resource blade files on your custom path under resources/views folder
Default Path : resources/views/
--namespace
is optional argument.
You can change namespace of controller by using this argument
Default Value : App\Http\Controllers
- One Controller File
- One Url Presenter File
- Four blade files
- index.blade.php
- create.blade.php
- edit.blade.php
- form.blade.php
- show.blade.php
The MIT License (MIT).