class Illuminate / Http / RedirectResponse
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

RedirectResponse

Extends

    Symfony\...\RedirectResponse

Uses

Properties

protected

$request Request

The request instance.

Default: null
protected

$session Store

The session store instance.

Default: null

Methods

public

with ( $key , $value ) : $this

Flash a piece of data to the session.

Parameters

  • $key string|array
  • $value mixed
public

withCookies ( array $cookies ) : $this

Add multiple cookies to the response.

Parameters

  • $cookies array
public

withInput ( array $input ) : $this

Flash an array of input to the session.

Parameters

  • $input array|null
protected

removeFilesFromInput ( array $input ) : array

Remove all uploaded files form the given input array.

Parameters

  • $input array
public

onlyInput ( ) : $this

Flash an array of input to the session.

public

exceptInput ( ) : $this

Flash an array of input to the session.

public

withErrors ( $provider , $key ) : $this

Flash a container of errors to the session.

Parameters

protected

parseErrors ( $provider ) : MessageBag

Parse the given errors into an appropriate value.

Parameters

public

withFragment ( $fragment ) : $this

Add a fragment identifier to the URL.

Parameters

  • $fragment string
public

withoutFragment ( ) : $this

Remove any fragment identifier from the response URL.

public

getOriginalContent ( ) : null

Get the original response content.

public

getRequest ( ) : Request |null

Get the request instance.

public

setRequest ( Request $request ) : void

Set the request instance.

Parameters

public

getSession ( ) : Store |null

Get the session store instance.

public

setSession ( Store $session ) : void

Set the session store instance.

Parameters

public

__call ( $method , $parameters ) : mixed

Dynamically bind flash data in the session.

Parameters

  • $method string
  • $parameters array