context; // 리스너에서 명시적으로 전달하지 않은 경우에만 자동 주입 $context['user_id'] ??= Auth::id(); $context['ip_address'] ??= Request::ip(); $context['user_agent'] ??= Request::userAgent(); return $record->with(context: $context); } }