accessTokenKey = $data['accessTokenKey']; $qb->refresh_token = $data['refresh_token']; $qb->realmID = $data['realmID']; $qb->accessTokenExpiresAt = $data['accessTokenExpiresAt']; $qb->refreshTokenExpiresAt = $data['refreshTokenExpiresAt']; $qb->settings = $data['settings'] ?? []; return $qb; } public function set($model, string $key, $value, array $attributes) { return [ $key => json_encode([ 'accessTokenKey' => $value->accessTokenKey, 'refresh_token' => $value->refresh_token, 'realmID' => $value->realmID, 'accessTokenExpiresAt' => $value->accessTokenExpiresAt, 'refreshTokenExpiresAt' => $value->refreshTokenExpiresAt, 'settings' => $value->settings, ]) ]; } }