Methods summary
public static
Symfony\Component\HttpFoundation\Response
|
#
make( string $content = '', integer $status = 200, array $headers = array() )
Return a new response from the application.
Return a new response from the application.
Parameters
- $content
string $content
- $status
integer $status
- $headers
array $headers
Returns
Symfony\Component\HttpFoundation\Response
|
public static
Symfony\Component\HttpFoundation\Response
|
#
view( string $view, array $data = array(), integer $status = 200, array $headers = array() )
Return a new view response from the application.
Return a new view response from the application.
Parameters
- $view
string $view
- $data
array $data
- $status
integer $status
- $headers
array $headers
Returns
Symfony\Component\HttpFoundation\Response
|
public static
Illuminate\Http\JsonResponse
|
#
json( string|array $data = array(), integer $status = 200, array $headers = array() )
Return a new JSON response from the application.
Return a new JSON response from the application.
Parameters
- $data
string|array $data
- $status
integer $status
- $headers
array $headers
Returns
Illuminate\Http\JsonResponse
|
public static
Symfony\Component\HttpFoundation\StreamedResponse
|
#
stream( Closure $callback, integer $status = 200, array $headers = array() )
Return a new streamed response from the application.
Return a new streamed response from the application.
Parameters
- $callback
Closure
$callback
- $status
integer $status
- $headers
array $headers
Returns
Symfony\Component\HttpFoundation\StreamedResponse
|
public static
Symfony\Component\HttpFoundation\BinaryFileResponse
|
#
download( SplFileInfo |string $file, string $name = null, array $headers = array() )
Create a new file download response.
Create a new file download response.
Parameters
- $file
SplFileInfo |string
$file
- $name
string $name
- $headers
array $headers
Returns
Symfony\Component\HttpFoundation\BinaryFileResponse
|