PHP Class Devise\Support\DeviseResponse

Exibir arquivo Open project: devisephp/cms

Public Methods

Method Description
download ( SplFileInfo | string $file, string $name = null, array $headers = [], null | string $disposition = 'attachment' ) : BinaryFileResponse Create a new file download response.
getFacadeRoot ( ) : DeviseResponse Pretends to be a Facade for Response
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 ( $name, callable $macro ) Registers a macro
make ( string $content = '', integer $status = 200, array $headers = [] ) : Illuminate\Http\Response Return a new response from the application.
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.

Method Details

download() public method

Create a new file download response.
public download ( SplFileInfo | string $file, string $name = null, array $headers = [], null | string $disposition = 'attachment' ) : BinaryFileResponse
$file SplFileInfo | string
$name string
$headers array
$disposition null | string
return Symfony\Component\HttpFoundation\BinaryFileResponse

getFacadeRoot() public static method

Pretends to be a Facade for Response
public static getFacadeRoot ( ) : DeviseResponse
return DeviseResponse

hasMacro() public method

Checks if macro is registered
public hasMacro ( string $name ) : boolean
$name string
return boolean

json() public method

Return a new JSON response from the application.
public json ( string | array $data = [], integer $status = 200, array $headers = [], integer $options ) : Illuminate\Http\JsonResponse
$data string | array
$status integer
$headers array
$options integer
return Illuminate\Http\JsonResponse

jsonp() public method

Return a new JSONP response from the application.
public jsonp ( string $callback, string | array $data = [], integer $status = 200, array $headers = [], integer $options ) : Illuminate\Http\JsonResponse
$callback string
$data string | array
$status integer
$headers array
$options integer
return Illuminate\Http\JsonResponse

macro() public method

Registers a macro
public macro ( $name, callable $macro )
$name
$macro callable

make() public method

Return a new response from the application.
public make ( string $content = '', integer $status = 200, array $headers = [] ) : Illuminate\Http\Response
$content string
$status integer
$headers array
return Illuminate\Http\Response

stream() public method

Return a new streamed response from the application.
public stream ( Closure $callback, integer $status = 200, array $headers = [] ) : Symfony\Component\HttpFoundation\StreamedResponse
$callback Closure
$status integer
$headers array
return Symfony\Component\HttpFoundation\StreamedResponse

view() public static method

Return a new view response from the application.
public static view ( string $view, array $data = [], integer $status = 200, array $headers = [] ) : Illuminate\Http\Response
$view string
$data array
$status integer
$headers array
return Illuminate\Http\Response