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
at line 29
public
macro($name $name, callable $macro)
Registers a macro
at line 40
public boolean
hasMacro(string $name)
Checks if macro is registered
at line 53
public Response
make(string $content = '', int $status = 200, array $headers = array())
Return a new response from the application.
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.
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.
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.
at line 109
public StreamedResponse
stream(Closure $callback, int $status = 200, array $headers = array())
Return a new streamed response from the application.
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.