public function get($name, $default = null)
    {
        if ( ! $this->has($name)) {
            return $default;
        }

        $return = $this->oldInput[$name];

        unset($this->oldInput[$name]);

        return $return;
    }
public function get($name, $default = null)
    {
        if ( ! $this->has($name)) {
            return $default;
        }

        $return = $this->oldInput[$name];

        unset($this->oldInput[$name]);

        return $return;
    }
public function get ( $ name , $ default = null ) { if ( ! $ this -> has ( $ name ) ) { return $ default ; } $ return = $ this -> oldInput [ $ name ] ; unset ( $ this -> oldInput [ $ name ] ) ; return $ return ; }
Gets and clears input from the stack.

@param string $name
@param null $default Default value if $name does not exist.

@return array
Gets and clears input from the stack .