app/Http/Controllers/Controller.php
protected function input($name, $clean = false)
    {
        if ($this->inputHas($name)) {
            if ($clean) {
                return $this->clean(Input::get($name));
            } else {
                return Input::get($name);
            }
        }

        return;
    }
protected function input($name, $clean = false)
    {
        if ($this->inputHas($name)) {
            if ($clean) {
                return $this->clean(Input::get($name));
            } else {
                return Input::get($name);
            }
        }

        return;
    }
Returns input from the client. If clean is set to true, the input will be
ran through the purifier before it is returned.

@param string $name
@param bool   $clean

@return mixed