File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change 87
87
// 'middleware' => null
88
88
],
89
89
90
+ // set to null if you want to keep snake_case
90
91
'name_converter ' => SnakeCaseToCamelCaseNameConverter::class,
91
92
92
93
'exception_to_status ' => [
Original file line number Diff line number Diff line change 20
20
use Illuminate \Database \Eloquent \Relations \BelongsTo ;
21
21
use Symfony \Component \Serializer \Attribute \Groups ;
22
22
23
- // #[ApiResource(denormalizationContext: ['groups' => ['cart_item.write']], normalizationContext: ['groups' => ['cart_item.write']])]
24
23
#[ApiResource(denormalizationContext: ['groups ' => ['cart_item.write ' ]], normalizationContext: ['groups ' => ['cart_item.write ' ]])]
25
24
#[Groups('cart_item.write ' )]
26
25
#[ApiProperty(serialize: new Groups (['shopping_cart.write ' ]), property: 'product_sku ' )]
You can’t perform that action at this time.
0 commit comments