Skip to content

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');

@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.

2 participants