Laravel 11 $dates are now defined in $casts

This commit is contained in:
Deon George 2024-07-07 21:25:39 +10:00
parent 0c5ffdad2f
commit c35a439566

View File

@ -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 */