Skip to content

Commit

Permalink
Laravel 10 fixes I forgot
Browse files Browse the repository at this point in the history
  • Loading branch information
Liesel Downes committed Apr 25, 2023
1 parent aa29c00 commit f51a612
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/Models/RclMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ public function prunable(): Builder
*
* @var string[]
*/
protected $dates = [
'request_time',
'edit_lock_time',
protected $casts = [
'request_time' => 'datetime',
'edit_lock_time' => 'datetime',
];

/**
Expand Down
7 changes: 3 additions & 4 deletions app/Models/Track.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ class Track extends Model
'identifier', 'active', 'last_routeing', 'valid_from', 'valid_to', 'last_active', 'concorde',
];

protected $dates = [
'valid_to', 'valid_from', 'last_active',
];

protected $casts = [
'active' => 'bool',
'valid_to' => 'datetime',
'valid_from' => 'datetime',
'last_active' => 'datetime',
];

/**
Expand Down

0 comments on commit f51a612

Please sign in to comment.