Methods summary
public static
Laravel\Redirect
|
#
home( integer $status = 302, boolean $https = null )
Create a redirect response to application root.
Create a redirect response to application root.
Parameters
- $status
integer $status
- $https
boolean $https
Returns
|
public static
Laravel\Redirect
|
#
back( integer $status = 302 )
Create a redirect response to the HTTP referrer.
Create a redirect response to the HTTP referrer.
Parameters
Returns
|
public static
Laravel\Redirect
|
#
to( string $url, integer $status = 302, boolean $https = null )
Create a redirect response.
Create a redirect response.
return Redirect::to('user/profile');
return Redirect::to('user/profile', 301);
Parameters
- $url
string $url
- $status
integer $status
- $https
boolean $https
Returns
|
public static
Laravel\Redirect
|
#
to_secure( string $url, integer $status = 302 )
Create a redirect response to a HTTPS URL.
Create a redirect response to a HTTPS URL.
Parameters
- $url
string $url
- $status
integer $status
Returns
|
public static
Laravel\Redirect
|
#
to_action( string $action, array $parameters = array(), integer $status = 302 )
Create a redirect response to a controller action.
Create a redirect response to a controller action.
Parameters
- $action
string $action
- $parameters
array $parameters
- $status
integer $status
Returns
|
public static
Laravel\Redirect
|
#
to_route( string $route, array $parameters = array(), integer $status = 302 )
Create a redirect response to a named route.
Create a redirect response to a named route.
return Redirect::to_route('login');
return Redirect::to_route('profile', array($username));
Parameters
- $route
string $route
- $parameters
array $parameters
- $status
integer $status
Returns
|
public
Laravel\Redirect
|
#
with( string $key, mixed $value )
Add an item to the session flash data.
Add an item to the session flash data.
This is useful for "passing" status messages or other data to the next
request.
return Redirect::to('profile')->with('message', 'Welcome Back!');
Parameters
- $key
string $key
- $value
mixed $value
Returns
|
public
Laravel\Redirect
|
#
with_input( string $filter = null, array $items = array() )
Flash the old input to the session and return the Redirect instance.
Flash the old input to the session and return the Redirect instance.
Once the input has been flashed, it can be retrieved via the Input::old
method.
return Redirect::to('login')->with_input();
return Redirect::to('login')->with_input('only', array('email', 'username'));
return Redirect::to('login')->with_input('except', array('password', 'ssn'));
Parameters
- $filter
string $filter
- $items
array $items
Returns
|
public
Laravel\Redirect
|
#
with_errors( Laravel\Validator |Laravel\Messages $container )
Flash a Validator's errors to the session data.
Flash a Validator's errors to the session data.
This method allows you to conveniently pass validation errors back to
views.
return Redirect::to('register')->with_errors($validator);
Parameters
Returns
|
public
|
#
send( )
Send the headers and content of the response to the browser.
Send the headers and content of the response to the browser.
Overrides
|