Replies: 1 comment 4 replies
-
Yeah this is a shortcoming of the current implementation of our partial trees, with v4 this is solved which should release later this year!
Hmm wouldn't that always be the case? They are each others opposites:
I don't think they can ever work together. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I've been using laravel-data recently and it's been great. We're using data objects as value objects, but just discovered that objects are not immutable.
Specifically,
except
seems to remove properties that we can't get back. The use case is that we have a data object that we serialize to send to an external API, and we need to exclude the ID. Then we want to use the same instance to include the ID elsewhere, but it is no longer included in the array/JSON.Also, it seems like
only
doesn't work after callingexcept
? Are we missing something?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions