Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Add unless to JsonResource #45419

Merged
merged 6 commits into from
Dec 30, 2022
Merged

[9.x] Add unless to JsonResource #45419

merged 6 commits into from
Dec 30, 2022

Conversation

michaelnabil230
Copy link
Contributor

@michaelnabil230 michaelnabil230 commented Dec 24, 2022

This PR adds an unless method to the JSON resource class for retrieving a value if the given "condition" is (or resolves to) falsy.

@taylorotwell taylorotwell merged commit 8209afd into laravel:9.x Dec 30, 2022
@michaelnabil230 michaelnabil230 deleted the features-json-resource branch December 30, 2022 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants