Skip to content

Conversation

jnoordsij
Copy link
Contributor

In #47823 support for using BackedEnum based groupBy calls was added. This PR extends support to also allow UnitEnum to be used. It also adds some tests for different types of enums.

Note this does not update docblocks that already do not account for usage of BackedEnum (and Stringable for that matter) in callbacks, given I somewhat struggled to get this working (see also #56856). I may attempt to follow-up with a docblock request later.

@taylorotwell taylorotwell merged commit c8c9dbb into laravel:12.x Sep 1, 2025
65 checks passed
@jnoordsij jnoordsij deleted the groupby-unitenum branch September 2, 2025 06:09
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