Laravel 11 $dates are now defined in $casts
This commit is contained in:
parent
0c5ffdad2f
commit
c35a439566
@ -7,9 +7,9 @@ use Laravel\Socialite\Facades\Socialite;
|
||||
|
||||
class ProviderToken extends Model
|
||||
{
|
||||
protected $dates = [
|
||||
'access_token_expires_at',
|
||||
'refresh_token_expires_at',
|
||||
protected $casts = [
|
||||
'access_token_expires_at' => 'datetime:Y-m-d H:i:s',
|
||||
'refresh_token_expires_at' => 'datetime:Y-m-d H:i:s',
|
||||
];
|
||||
|
||||
/* ATTRIBUTES */
|
||||
|
Loading…
Reference in New Issue
Block a user