src/Http/Response.php
public function redirect($location, $status = 302)
    {
        if (!$location) {
            return;
        }
        $this->status($status);
        $headers = $this->headers();
        $headers['Location'] = $location;
        return $this;
    }
public function redirect($location, $status = 302)
    {
        if (!$location) {
            return;
        }
        $this->status($status);
        $headers = $this->headers();
        $headers['Location'] = $location;
        return $this;
    }
public function redirect ( $ location , $ status = 302 ) { if ( ! $ location ) { return ; } $ this -> status ( $ status ) ; $ headers = $ this -> headers ( ) ; $ headers [ 'Location' ] = $ location ; return $ this ; }
Set a redirect location.

@param string  $location The redirect location.
@param integer $status   The redirect HTTP status.
Set a redirect location .