Method |
Description |
|
download ( SplFileInfo | string $file, string $name = null, array $headers = [], string | null $disposition = 'attachment' ) : BinaryFileResponse |
Create a new file download response. |
|
file ( SplFileInfo | string $file, array $headers = [] ) : BinaryFileResponse |
Return the raw contents of a binary file. |
|
hasMacro ( string $name ) : boolean |
Checks if macro is registered. |
|
json ( string | array $data = [], integer $status = 200, array $headers = [], integer $options ) : Illuminate\Http\JsonResponse |
Return a new JSON response from the application. |
|
jsonp ( string $callback, string | array $data = [], integer $status = 200, array $headers = [], integer $options ) : Illuminate\Http\JsonResponse |
Return a new JSONP response from the application. |
|
macro ( string $name, callable $macro ) : void |
Register a custom macro. |
|
make ( string $content = '', integer $status = 200, array $headers = [] ) : Illuminate\Http\Response |
Return a new response from the application. |
|
redirectGuest ( string $path, integer $status = 302, array $headers = [], boolean | null $secure = null ) : Illuminate\Http\RedirectResponse |
Create a new redirect response, while putting the current URL in the session. |
|
redirectTo ( string $path, integer $status = 302, array $headers = [], boolean | null $secure = null ) : Illuminate\Http\RedirectResponse |
Create a new redirect response to the given path. |
|
redirectToAction ( string $action, array $parameters = [], integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse |
Create a new redirect response to a controller action. |
|
redirectToIntended ( string $default = '/', integer $status = 302, array $headers = [], boolean | null $secure = null ) : Illuminate\Http\RedirectResponse |
Create a new redirect response to the previously intended location. |
|
redirectToRoute ( string $route, array $parameters = [], integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse |
Create a new redirect response to a named route. |
|
stream ( Closure $callback, integer $status = 200, array $headers = [] ) : Symfony\Component\HttpFoundation\StreamedResponse |
Return a new streamed response from the application. |
|
view ( string $view, array $data = [], integer $status = 200, array $headers = [] ) : Illuminate\Http\Response |
Return a new view response from the application. |
|