- Laravel-mongodb Version: 5.2.0
- PHP Version: 8.2.27
- Database Driver & Version: 6.0.20
Description:
Steps to reproduce
- Create Model with property in
casts method defined as array
- Save Model
- Query Model from Collection in Studio 3T
Expected behaviour
I expected it to save as a MongoDB array.
Actual behaviour
It saved as a PHP string representation of an array.
Logs:
Insert log.txt here (if necessary)