Support laravel collections that eloquent modifies for full parity (like only
, except
, etc)
#15023
-
There are a number of collection methods that Eloquent modifies that Craft should also modify for full support.
Would be nice to able to do something like this. $data = Entry::find()->section('blog')->collect()->only(['title', 'comments']); |
Beta Was this translation helpful? Give feedback.
Answered by
brandonkelly
May 24, 2024
Replies: 2 comments 4 replies
This comment has been hidden.
This comment has been hidden.
-
Just added close to full parity with eloquent collections for Craft 4.10 and 5.2 (0fbc77b) 🎉 See the changelog updates in that commit for full details. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
brandonkelly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just added close to full parity with eloquent collections for Craft 4.10 and 5.2 (0fbc77b) 🎉
See the changelog updates in that commit for full details.