Devise
Class

Devise\Support\DeviseResponse

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 $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 public DeviseResponse getFacadeRoot()

Pretends to be a Facade for Response

Return Value

DeviseResponse

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

Registers a macro

Parameters

$name $name
callable $macro

at line 40
public boolean hasMacro(string $name)

Checks if macro is registered

Parameters

string $name

Return Value

boolean

at line 53
public 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 public 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
public 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
public 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
public 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
public 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