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
|
class ProviderToken extends Model
|
||||||
{
|
{
|
||||||
protected $dates = [
|
protected $casts = [
|
||||||
'access_token_expires_at',
|
'access_token_expires_at' => 'datetime:Y-m-d H:i:s',
|
||||||
'refresh_token_expires_at',
|
'refresh_token_expires_at' => 'datetime:Y-m-d H:i:s',
|
||||||
];
|
];
|
||||||
|
|
||||||
/* ATTRIBUTES */
|
/* ATTRIBUTES */
|
||||||
|
Loading…
Reference in New Issue
Block a user