-
Notifications
You must be signed in to change notification settings - Fork 1.4k
whereDate returning null data #2336
Unanswered
Aamirbashir
asked this question in
Q&A
-
- Laravel-mongodb Version: 3.8
- PHP Version: 8.0.13
- Database Driver & Version: 8.0.13
Description:
I am trying to get data by date, but I get a null value
Steps to reproduce
Model.
protected $table="categories";
protected $connection="mongodb";
protected $dates=['created_at','updated_at'];
Query:
$category = category::whereDate('created_at','2022-01-06')->get();
Data in database
created_at: 2022年01月06日T05:18:06.849+0000
Expected behaviour
I am trying to get data by date non of the query are working on a date.
Actual behaviour
I am getting Null data
Logs:
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
any one can help me on this.
Beta Was this translation helpful? Give feedback.
All reactions
1 reply
-
this might be too late, but can you test this? #2376
Beta Was this translation helpful? Give feedback.
All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment