where('conversation_id', $conversationId) ->where('user_id', $user->id) ->exists(); if ($isParticipant) { return true; } return ChatSupport::isOperator($user) && ChatSupport::conversationIncludesSupport($conversationId); });