Skip to content

Commit 2eaf78f

Browse files
author
Admin
committed
update reamde
1 parent 6433023 commit 2eaf78f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ Library for [laravel-crud-wizard-free](https://github.com/macropay-solutions/lar
2020

2121
This 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

0 commit comments

Comments
 (0)