Skip to content

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

Merged
taylorotwell merged 1 commit intolaravel:9.xfrom
stevebauman:fix-snaked-relation-count
Jul 20, 2022
Merged

[9.x] Ensure relation names are properly "snaked" in JsonResource::whenCounted() method#43322
taylorotwell merged 1 commit intolaravel:9.xfrom
stevebauman:fix-snaked-relation-count

Conversation

@stevebauman
Copy link
Copy Markdown
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