-
Notifications
You must be signed in to change notification settings - Fork 1.5k
-
- Laravel-mongodb Version: 3.7.0
- PHP Version: 7.4.2
- Database Driver & Version:1.6.1
Description:
I have added the below code in model
protected $dates = ['sale_start_date',''sale_end_date];
My query are like this
$startDate = Carbon::parse("2020-10-14");
$endDate = Carbon::parse("2020-10-16");
$property->where('sale_start_date','>=',$startDate)->where('sale_end_date','<='$endDate)->get()->toArray();
I have data from 2020年10月14日T00:00:00.000+00:00 to 2020年10月31日T00:00:00.000+00:00
But I am getting empty array but I have data
What I am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment