-
Notifications
You must be signed in to change notification settings - Fork 3
Controllers
Marcin Halak (Versoo) edited this page Apr 10, 2018
·
2 revisions
Command to create Controller in resource directory, using for that a resource name.
php artisan larapi:controller {Resource}
To create Controller in exists resource you can use Name argument. It will be create Controller for a resource with your custom name.
php artisan larapi:controller {Resource} {Name}
Arguments:
- Resource - Name of resource
- Name - Optional: Name of model. If is empty it will be use resource as name of controller.
Options:
- -m, --model=MODEL - Name of custom model for controller
- --force - Force to create service, overwrite if exists