Skip to content
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

[9.x] Ensure relation names are properly "snaked" in JsonResource::whenCounted() method #43322

Merged
merged 1 commit into from
Jul 20, 2022
Merged

[9.x] Ensure relation names are properly "snaked" in JsonResource::whenCounted() method #43322

merged 1 commit into from
Jul 20, 2022

Conversation

stevebauman
Copy link
Contributor

This PR fixes a bug that I introduced in the new JsonResource::whenCounted($relation) method (#43101) where a relation name would not be snaked in the event of using a multi-word relationship.

@taylorotwell taylorotwell merged commit c8d3851 into laravel:9.x Jul 20, 2022
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