How to get count of non existing values from eloquent? #38291
Unanswered
ruvaifa-masood
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Do you mean all posts that weren't created in the specified range? Like so? $count = Post::where('created_at', '<', $fromDate)->where('created_at', '>', $toDate)->count(); |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
Is there any way to get count of non existing values from eloquent?
For example:
How can I get the count of those posts which doesn't exist between the mentioned from and to dates?
Beta Was this translation helpful? Give feedback.
All reactions