Closed
Description
- Laravel-mongodb Version: 9
- PHP Version: 8.2
- Database Driver & Version:
Description:
Steps to reproduce
- Create/store null or empty datetime field in collection
- add this datetime field in collection model in protected $cast array
- try to fetch data from collection
- and check null date will show as Current date
Expected behaviour
After fetching data from collection the Null or empty date fields should return null value or empty value - not current datetime
Actual behaviour
Insted of return null or empty field it returning current datetime
Metadata
Metadata
Assignees
Labels
No labels