public function backWith($key, $value)
    {
        $this->with($key, $value);

        $url = $this->session->get('previous_uri');

        header('location: ' . $url);
        exit();
    }
public function backWith($key, $value)
    {
        $this->with($key, $value);

        $url = $this->session->get('previous_uri');

        header('location: ' . $url);
        exit();
    }
public function backWith ( $ key , $ value ) { $ this -> with ( $ key , $ value ) ; $ url = $ this -> session -> get ( 'previous_uri' ) ; header ( 'location: ' . $ url ) ; exit ( ) ; }
To redirect back with value

@param string $key
@param mixed $value
To redirect back with value