This would make use-cases like these slightly simpler to work with, by removing the need to manually make this cast:
$inertia->where('month.dates', function ($dates) {
return collect($dates)
->where('date', '2018-06-02')
->where(...);
Before doing this we should look into making sure this doesn't cause any issues. I believe Inertia already converts things before we run assertions on it, but I'm not 100% sure of this from the top of my head. If it does, then this should be a very simple (breaking?) change to make.
This would make use-cases like these slightly simpler to work with, by removing the need to manually make this cast:
Before doing this we should look into making sure this doesn't cause any issues. I believe Inertia already converts things before we run assertions on it, but I'm not 100% sure of this from the top of my head. If it does, then this should be a very simple (breaking?) change to make.