You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I’m trying to exclude the property. Is it a bug or expected behavior?
Why's not it possible to exclude a lazy property even if it's conditional?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
According to documentation, it isn’t possible to include the property later on with the include method when a condition isn’t accepted.
https://spatie.be/docs/laravel-data/v4/as-a-resource/lazy-properties#content-conditional-lazy-properties
However, I’m trying to exclude the property. Is it a bug or expected behavior?
Why's not it possible to exclude a lazy property even if it's conditional?
Beta Was this translation helpful? Give feedback.
All reactions