Closed septIO closed 5 years ago
This PR moves time dataTypes (timestamp, datetime, date) from protected $casts to protected $dates as described in Eloquents Date Mutators (https://laravel.com/docs/5.8/eloquent-mutators#date-mutators).
timestamp
datetime
date
protected $casts
protected $dates
It also removes redundant string casts. Laravel will already treat them as strings, no need to be super verbose about it :)
string
This PR moves time dataTypes (
timestamp
,datetime
,date
) fromprotected $casts
toprotected $dates
as described in Eloquents Date Mutators (https://laravel.com/docs/5.8/eloquent-mutators#date-mutators).It also removes redundant
string
casts. Laravel will already treat them as strings, no need to be super verbose about it :)