class Illuminate / Routing / Redirector
You are viewing an older version of the documentation. For the latest, please visit master documentation.

Redirector

Uses

Properties

protected

$generator UrlGenerator

The URL generator instance.

Default: null
protected

$session Store

The session store instance.

Default: null

Methods

public

__construct ( UrlGenerator $generator ) : void

Create a new Redirector instance.

Parameters

public

home ( $status ) : RedirectResponse

Create a new redirect response to the "home" route.

Parameters

  • $status int
public

back ( $status , $headers , $fallback ) : RedirectResponse

Create a new redirect response to the previous location.

Parameters

  • $status int
  • $headers array
  • $fallback mixed
public

refresh ( $status , $headers ) : RedirectResponse

Create a new redirect response to the current URI.

Parameters

  • $status int
  • $headers array
public

guest ( $path , $status , $headers , $secure ) : RedirectResponse

Create a new redirect response, while putting the current URL in the session.

Parameters

  • $path string
  • $status int
  • $headers array
  • $secure bool|null
public

intended ( $default , $status , $headers , $secure ) : RedirectResponse

Create a new redirect response to the previously intended location.

Parameters

  • $default string
  • $status int
  • $headers array
  • $secure bool|null
public

setIntendedUrl ( $url ) : void

Set the intended url.

Parameters

  • $url string
public

to ( $path , $status , $headers , $secure ) : RedirectResponse

Create a new redirect response to the given path.

Parameters

  • $path string
  • $status int
  • $headers array
  • $secure bool|null
public

away ( $path , $status , $headers ) : RedirectResponse

Create a new redirect response to an external URL (no validation).

Parameters

  • $path string
  • $status int
  • $headers array
public

secure ( $path , $status , $headers ) : RedirectResponse

Create a new redirect response to the given HTTPS path.

Parameters

  • $path string
  • $status int
  • $headers array
public

route ( $route , $parameters , $status , $headers ) : RedirectResponse

Create a new redirect response to a named route.

Parameters

  • $route string
  • $parameters mixed
  • $status int
  • $headers array
public

signedRoute ( $route , $parameters , $expiration , $status , $headers ) : RedirectResponse

Create a new redirect response to a signed named route.

Parameters

public

temporarySignedRoute ( $route , $expiration , $parameters , $status , $headers ) : RedirectResponse

Create a new redirect response to a signed named route.

Parameters

public

action ( $action , $parameters , $status , $headers ) : RedirectResponse

Create a new redirect response to a controller action.

Parameters

  • $action string|array
  • $parameters mixed
  • $status int
  • $headers array
protected

createRedirect ( $path , $status , $headers ) : RedirectResponse

Create a new redirect response.

Parameters

  • $path string
  • $status int
  • $headers array
public

getUrlGenerator ( ) : UrlGenerator

Get the URL generator instance.

public

setSession ( Store $session ) : void

Set the active session store.

Parameters