class Illuminate / Routing / Redirector

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

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 mixed
  • $status int
  • $headers array
  • $secure bool|null
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

public

getIntendedUrl ( ) : string|null

Get the "intended" URL from the session.

public

setIntendedUrl ( $url ) : $this

Set the "intended" URL in the session.

Parameters

  • $url string