Skip to content

Commit

Permalink
Merge pull request #18 from comes/patch-1
Browse files Browse the repository at this point in the history
Update RouteStatistic.php
  • Loading branch information
bilfeldt authored May 16, 2023
2 parents eb2a24a + 2522ddb commit d5e5941
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Models/RouteStatistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class RouteStatistic extends Model implements RequestLoggerInterface

public $timestamps = false;

protected $dates = [
'date',
protected $casts = [
'date' => 'datetime',
];

//======================================================================
Expand Down

0 comments on commit d5e5941

Please sign in to comment.