Closed ordago closed 1 year ago
Thanks, didn't spot that. Do you know if there's any minimum version where that datetime
cast was introduced?
Hi, I did the change in my codebase during the upgrade to v8.
Not sure about the exact minimum. But as I understand, it should work at least as far back as 5.5:
Alright, looks good to me! (Some tests are failing due to database issues, I ran into that error on another repo, should be fine but I'll fix it next week)
https://laravel.com/docs/10.x/upgrade#model-dates-property
Laravel 10 removed the
$dates
property that had deprecated in the previous version. Moving the dates to thecasts
property maintains the functionality and is backwards compatible.