Best way to use collections since DataCollection->filter is deprecated #975
Unanswered
TimmyBravo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I recently started using this package and is really liking it so far.
I'm currently building a project that takes large amounts of data as request input and performs a set of calculations on the data. During these calculations I need to filter data within the data collections that comes from the input. So far I've set it up so that I use your
DataCollection
class andDataCollectionOf
attribute for the collections.I then tried running
$collection->filter
but found that that's deprecated and that Laravels collection should be used instead. I'm just wondering where that swap should take place? Should I make the collections of Laravels collection type within the class directly or should I runcollect($collection)->filter
in the places where I'll filter them?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions