public function input($key = null, $default = null)
    {
        if ($key) {
            return $this->get($key, $default);
        } else {
            return $this->all();
        }
    }
public function input($key = null, $default = null)
    {
        if ($key) {
            return $this->get($key, $default);
        } else {
            return $this->all();
        }
    }
public function input ( $ key = null , $ default = null ) { if ( $ key ) { return $ this -> get ( $ key , $ default ) ; } else { return $ this -> all ( ) ; } }
Get request parameters
@param string $key
@param mixed $default
@return array|string
Get request parameters