src/ModelFilter.php
public function input($key = null, $default = null)
    {
        if ($key === null) {
            return $this->input;
        }

        return array_key_exists($key, $this->input) ? $this->input[$key] : $default;
    }
public function input($key = null, $default = null)
    {
        if ($key === null) {
            return $this->input;
        }

        return array_key_exists($key, $this->input) ? $this->input[$key] : $default;
    }
public function input ( $ key = null , $ default = null ) { if ( $ key === null ) { return $ this -> input ; } return array_key_exists ( $ key , $ this -> input ) ? $ this -> input [ $ key ] : $ default ; }
Retrieve input by key or all input as array.

@param null $key
@param null $default
@return array|mixed|null
Retrieve input by key or all input as array .