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