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
Pretends to be a Facade for Response
Registers a macro
Checks if macro is registered
Return a new response from the application.
Return a new view response from the application.
Return a new JSON response from the application.
Return a new JSONP response from the application.
Create a new file download response.
Details
at line 18
static DeviseResponse
getFacadeRoot()
Pretends to be a Facade for Response
at line 29
macro($name, callable $macro)
Registers a macro
at line 40
boolean
hasMacro(string $name)
Checks if macro is registered
at line 53
Response
make(string $content = '', int $status = 200, array $headers = array())
Return a new response from the application.
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.
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.
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.
at line 109
StreamedResponse
stream(Closure $callback, int $status = 200, array $headers = array())
Return a new streamed response from the application.
at line 123
BinaryFileResponse
download(SplFileInfo|string $file, string $name = null, array $headers = array(), null|string $disposition = 'attachment')
Create a new file download response.