You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -22,7 +22,11 @@ All you need to do is to run the following command:
22
22
php artisan api-resource:generate <model-name>
23
23
```
24
24
25
-
This command will generate a new resource for the given model name with the properties defined in the model. For example, for the model named `User` you will get the following resource:
25
+
This command will generate a new resource for the given model name with the properties defined in the model.
26
+
27
+
If you want to set the array keys of the resource as *camelCase*, you can use the `--camel-case`, you will be prompted to do it.
28
+
29
+
For example, for the model named `User` you will get the following resource:
26
30
27
31
```php
28
32
<?php
@@ -35,7 +39,7 @@ use Illuminate\Http\Resources\Json\JsonResource;
35
39
use JsonSerializable;
36
40
37
41
/**
38
-
*
42
+
* Resource generated by alibori/laravel-api-resource-generator
0 commit comments