Overview

Namespaces

  • Composer
    • Autoload
  • Illuminate
    • Support
      • Contracts
      • Facades
  • Laravella
    • Cart
      • Facades
  • None
  • PHP

Classes

  • App
  • Artisan
  • Auth
  • Blade
  • Cache
  • Config
  • Cookie
  • Crypt
  • DB
  • Event
  • Facade
  • File
  • Form
  • Hash
  • HTML
  • Input
  • Lang
  • Log
  • Mail
  • Paginator
  • Password
  • Queue
  • Redirect
  • Redis
  • Request
  • Response
  • Route
  • Schema
  • Session
  • URL
  • Validator
  • View
  • Overview
  • Namespace
  • Class
  • Tree

Class Response

Namespace: Illuminate\Support\Facades
Located at vendor/illuminate/support/Illuminate/Support/Facades/Response.php
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
cart API documentation generated by ApiGen 2.8.0