Skip to content

feat(laravel): add name_converter option #7159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 21, 2025

Conversation

Seb33300
Copy link
Contributor

Q A
Branch? main
Tickets Closes api-platform/api-platform#2869
License MIT
Doc PR

Same option as the api_platform.name_converter option in Symfony.

@soyuka soyuka changed the base branch from main to 4.1 May 21, 2025 12:13
@soyuka
Copy link
Member

soyuka commented May 21, 2025

For laravel features that are already available in Symfony we're allowing these to be merged on lower branches, I've added a test and as Laravel Eloquent's models are already snake_case you need to set null if you want snake case. Keep the default if you want camelCase. Thanks for the contribution.

@soyuka soyuka merged commit fe73002 into api-platform:4.1 May 21, 2025
@Seb33300 Seb33300 deleted the name-converter branch May 21, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants