From c35a439566b60cd845765c497b9d7fd628b13543 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 7 Jul 2024 21:25:39 +1000 Subject: [PATCH] Laravel 11 $dates are now defined in $casts --- src/Models/ProviderToken.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Models/ProviderToken.php b/src/Models/ProviderToken.php index 9825eb7..5ac8de8 100644 --- a/src/Models/ProviderToken.php +++ b/src/Models/ProviderToken.php @@ -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 */