Download the PHP package kmaking/resource-generator without Composer
On this page you can find all versions of the php package kmaking/resource-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kmaking/resource-generator
More information about kmaking/resource-generator
Files in kmaking/resource-generator
Package resource-generator
Short Description This package allow to generate resource for your application, resources includes views and controller
License MIT
Informations about the package resource-generator
KMA Resource Generator
KMA resource generator used to generate resourcefull controller with views and form controller
Artisan Use
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= (optional)
--layout
is optional argument.
You can set your custom layout for reasource blade files by using this argument.
Default Value : layouts.app
--prefix= (optional)
--prefix
is optional argument.
You can set route prefix for resource route action.
Default Value : Model Name in lower case
--view-path= (optional)
--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= (optional)
--namespace
is optional argument.
You can change namespace of controller by using this argument
Default Value : App\Http\Controllers
Number of Files Generating
- 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
Licence
The MIT License (MIT).