class DeviseResponse

Class DeviseResponse for some reason Illuminate\Support\Facades\Response is not an actual facade but a real class. So we can't use getFacadeAccessor on it. Instead we write a proxy class called DeviseResponse which simply calls static methods on Response object.

Methods

static DeviseResponse
getFacadeRoot()

Pretends to be a Facade for Response

macro($name, callable $macro)

Registers a macro

boolean
hasMacro(string $name)

Checks if macro is registered

Response
make(string $content = '', int $status = 200, array $headers = array())

Return a new response from the application.

static Response
view(string $view, array $data = array(), int $status = 200, array $headers = array())

Return a new view response from the application.

JsonResponse
json(string|array $data = array(), int $status = 200, array $headers = array(), int $options)

Return a new JSON response from the application.

JsonResponse
jsonp(string $callback, string|array $data = array(), int $status = 200, array $headers = array(), int $options)

Return a new JSONP response from the application.

StreamedResponse
stream(Closure $callback, int $status = 200, array $headers = array())

Return a new streamed response from the application.

BinaryFileResponse
download(SplFileInfo|string $file, string $name = null, array $headers = array(), null|string $disposition = 'attachment')

Create a new file download response.

Details

at line 18
static DeviseResponse getFacadeRoot()

Pretends to be a Facade for Response

Return Value

DeviseResponse

at line 29
macro($name, callable $macro)

Registers a macro

Parameters

$name
callable $macro

at line 40
boolean hasMacro(string $name)

Checks if macro is registered

Parameters

string $name

Return Value

boolean

at line 53
Response make(string $content = '', int $status = 200, array $headers = array())

Return a new response from the application.

Parameters

string $content
int $status
array $headers

Return Value

Response

at line 67
static Response view(string $view, array $data = array(), int $status = 200, array $headers = array())

Return a new view response from the application.

Parameters

string $view
array $data
int $status
array $headers

Return Value

Response

at line 81
JsonResponse json(string|array $data = array(), int $status = 200, array $headers = array(), int $options)

Return a new JSON response from the application.

Parameters

string|array $data
int $status
array $headers
int $options

Return Value

JsonResponse

at line 96
JsonResponse jsonp(string $callback, string|array $data = array(), int $status = 200, array $headers = array(), int $options)

Return a new JSONP response from the application.

Parameters

string $callback
string|array $data
int $status
array $headers
int $options

Return Value

JsonResponse

at line 109
StreamedResponse stream(Closure $callback, int $status = 200, array $headers = array())

Return a new streamed response from the application.

Parameters

Closure $callback
int $status
array $headers

Return Value

StreamedResponse

at line 123
BinaryFileResponse download(SplFileInfo|string $file, string $name = null, array $headers = array(), null|string $disposition = 'attachment')

Create a new file download response.

Parameters

SplFileInfo|string $file
string $name
array $headers
null|string $disposition

Return Value

BinaryFileResponse