Skip to content

How to do json keys name conversion (camelCase to snake_case) with Laravel? #2869

Answered by Seb33300
ziming asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, it seems to be hardcoded for now:
https://github.com/api-platform/core/blob/b6080d4191c5ad10509257290564e37e8c555078/src/Laravel/ApiPlatformProvider.php#L322

Someone will have to create a PR to implement that feature.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@soyuka
Comment options

Answer selected by soyuka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants