Skip to content

Commit 2008d86

Browse files
TonyWong9527tony
and
tony
authored
laravel10 The Eloquent model's deprecated $dates property has been removed.application should now use the $casts property (#1636)
Co-authored-by: tony <[email protected]>
1 parent e305ff0 commit 2008d86

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Token.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,7 @@ class Token extends Model
4242
protected $casts = [
4343
'scopes' => 'array',
4444
'revoked' => 'bool',
45-
];
46-
47-
/**
48-
* The attributes that should be mutated to dates.
49-
*
50-
* @var array
51-
*/
52-
protected $dates = [
53-
'expires_at',
45+
'expires_at' => 'datetime',
5446
];
5547

5648
/**

0 commit comments

Comments
 (0)