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