We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
I am trying to get data by date, but I get a null value
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-06T05:18:06.849+0000
I am trying to get data by date non of the query are working on a date.
I am getting Null data
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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-06T05: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:
The text was updated successfully, but these errors were encountered: