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

[12.x] feat: Add whereNull and whereNotNull to Assertablejson #55131

Merged
merged 4 commits into from
Mar 22, 2025

Conversation

faissaloux
Copy link
Contributor

Hello 👋🏻

In this PR I have added two new methods to Assertablejson:

  • whereNull asserts value is null.
  • whereNotNull asserts values is not null.
$json->whereNotNull('id')
    ->whereNull('avatar');

faissaloux and others added 4 commits March 22, 2025 03:24

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@taylorotwell taylorotwell merged commit 468fb74 into laravel:12.x Mar 22, 2025
39 checks passed
@faissaloux faissaloux deleted the assertablejson-null branch March 22, 2025 16:25
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.

None yet

2 participants