src/Request.php
public function input($key, $default = false)
    {
        return $this->getRequestInputByType()->has($key) ?
            $this->getRequestInputByType()->get($key) : $default;
    }
public function input($key, $default = false)
    {
        return $this->getRequestInputByType()->has($key) ?
            $this->getRequestInputByType()->get($key) : $default;
    }
public function input ( $ key , $ default = false ) { return $ this -> getRequestInputByType ( ) -> has ( $ key ) ? $ this -> getRequestInputByType ( ) -> get ( $ key ) : $ default ; }
Get a request parameter by key.

@param $key
@param bool $default

@return bool|mixed
Get a request parameter by key .