src/DdvUtil/Laravel/Proxy/Traits/Prototype.php
public function loadPrototype(array $input, $isReplace = false)
    {
        /**
         * @var HttpRequest $request
         */
        $request = $this->getRequest();
        if ($isReplace) {
            $request->replace($input);
        } else {
            $request->merge($input);
        }
        // 释放内存
        unset($request);
        return $this;
    }
public function loadPrototype(array $input, $isReplace = false)
    {
        /**
         * @var HttpRequest $request
         */
        $request = $this->getRequest();
        if ($isReplace) {
            $request->replace($input);
        } else {
            $request->merge($input);
        }
        // 释放内存
        unset($request);
        return $this;
    }
批量设置属性
@param array $input
@param bool $isReplace
@return $this