diff --git a/CHANGELOG.md b/CHANGELOG.md index 0206c5f..c793f7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ No breaking changes. The only changes are to the development dependencies used f ## Changes +### 2.0.1 - 2023-05-16 + +- Use model 'casts' property instead of the depricated `dates` property + ### 2.0.0 - 2023-05-01 - Add support for PHP 8.2 diff --git a/src/Models/RouteStatistic.php b/src/Models/RouteStatistic.php index 6a4bda7..3f2e5bd 100644 --- a/src/Models/RouteStatistic.php +++ b/src/Models/RouteStatistic.php @@ -20,8 +20,8 @@ class RouteStatistic extends Model implements RequestLoggerInterface public $timestamps = false; - protected $dates = [ - 'date', + protected $casts = [ + 'date' => 'datetime', ]; //======================================================================