src/DdvUtil/Laravel/Proxy/Traits/Prototype.php
public function getPrototype($key = null, $defaultValue = null)
    {
        if (empty($key)) {
            throw new ProxyExceptions('key must not empty', 'MUST_INPUT_KEY');
        }
        /**
         * @var HttpRequest $request
         */
        $request = $this->getRequest();
        if ($request->has($key)) {
            return $request->input($key);
        } else {
            if (func_num_args() > 1) {
                return $defaultValue;
            } else {
                throw new ProxyExceptions('prototype [' . $key . '] not defined', 'PROTOTYPE_NOT_DEFINED');
            }
        }
    }
public function getPrototype($key = null, $defaultValue = null)
    {
        if (empty($key)) {
            throw new ProxyExceptions('key must not empty', 'MUST_INPUT_KEY');
        }
        /**
         * @var HttpRequest $request
         */
        $request = $this->getRequest();
        if ($request->has($key)) {
            return $request->input($key);
        } else {
            if (func_num_args() > 1) {
                return $defaultValue;
            } else {
                throw new ProxyExceptions('prototype [' . $key . '] not defined', 'PROTOTYPE_NOT_DEFINED');
            }
        }
    }
获取一个属性
@param null $key
@throws ProxyExceptions
@return mixed