File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,20 @@ Library for [laravel-crud-wizard-free](https://github.com/macropay-solutions/lar
2020
2121This will create a template for ** controller** , ** service** and ** model** and will print instructions on what is left to be done manually.
2222
23+ Example:
24+ ```
25+ # php artisan make:api-resource operations
26+ Created Model: /var/www/html/project/app/Models/Operation.php
27+ Created Service: /var/www/html/project/app/Services/OperationsService.php
28+ Created Controller: /var/www/html/project/app/Http/Controllers/OperationsController.php
29+ TODO:
30+ - Create migration if needed,
31+ - Fill the model's properties,
32+ - Define validations in controller,
33+ - Expose resource in DbCrudMap::MODEL_FQN_TO_CONTROLLER_MAP.
34+ ```
35+
36+
2337
2438## License
2539
You can’t perform that action at this time.
0 commit comments