Replies: 1 comment
-
I've added some docs on this: https://github.com/spatie/laravel-data/blob/0f1de38df97ccd9cc96f6244255136e61dc09b84/docs/custom-collections.md#L1-L0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there
I'd like to know if the package supports a way of extending the DataCollection class or adding macros to it to extend the functions available on the collection class.
The docs state
but we have a project where we need more than those few functions.
Just typehinting to our own collection class like this:
Dosen't work, as:
always seems to create a default DataCollection instance for it.
Beta Was this translation helpful? Give feedback.
All reactions