integer('conversation_id') ?: null; if ($conversationId) { $conversation = Conversation::query()->findOrFail($conversationId); $this->authorize('view', $conversation); } $this->presence->touch($request->user(), $conversationId); return response()->json([ 'ok' => true, 'conversation_id' => $conversationId, ]); } }