public function input($key, $default = null)
    {
        if (($value = $this->params->get($key)) !== null) {
            return $value;
        }

        if (($value = $this->payload->get($key)) !== null) {
            return $value;
        }

        return $default;
    }
public function input($key, $default = null)
    {
        if (($value = $this->params->get($key)) !== null) {
            return $value;
        }

        if (($value = $this->payload->get($key)) !== null) {
            return $value;
        }

        return $default;
    }
public function input ( $ key , $ default = null ) { if ( ( $ value = $ this -> params -> get ( $ key ) ) !== null ) { return $ value ; } if ( ( $ value = $ this -> payload -> get ( $ key ) ) !== null ) { return $ value ; } return $ default ; }
Gets a input value by key.

@param      $key
@param null $default
@return mixed
Gets a input value by key .