public function withInput(array $data = [])
    {
        if (count($data) == 0) {
            $this->request->session()->add('__bow.old', $this->request->all());
        } else {
            $this->request->session()->add('__bow.old', $data);
        }

        return $this;
    }
public function withInput(array $data = [])
    {
        if (count($data) == 0) {
            $this->request->session()->add('__bow.old', $this->request->all());
        } else {
            $this->request->session()->add('__bow.old', $data);
        }

        return $this;
    }
public function withInput ( array $ data = [ ] ) { if ( count ( $ data ) == 0 ) { $ this -> request -> session ( ) -> add ( '__bow.old' , $ this -> request -> all ( ) ) ; } else { $ this -> request -> session ( ) -> add ( '__bow.old' , $ data ) ; } return $ this ; }
Redirection with the query information

@param array $data
@return Redirect
Redirection with the query information