where('session_id', $sessionId) ->where('workspace_id', $workspaceId) ->first(); if (! $session) { throw new \InvalidArgumentException("Session not found: {$sessionId}"); } return $session; } }