record; $tier = $this->data['tier'] ?? null; $cadence = $this->data['cadence'] ?? 'monthly'; if ($tier === null) { return; } try { UserResource::applyTier($user, $tier, $cadence); } catch (\RuntimeException $e) { Notification::make() ->title('Tier not changed') ->body($e->getMessage()) ->warning() ->send(); } } }