Spec-Zone.ru › Laravel 6

Ответ

класс Ответ расширяет Facade (View source)

Свойства

static protected Application $app

Экземпляр приложения, к которому обращается фасад.

из Фасада
static protected array $resolvedInstance

Экземпляры разрешенных объектов.

из Фасада

Методы

static void resolved(Closure $callback)

Выполнить замыкание, когда фасад был разрешен.

from Facade
static MockInterface spy()

Преобразовать фасад в шпион Mockery.

from Facade
static MockInterface partialMock()

Инициализировать частичный макет на фасаде.

from Facade
static Expectation shouldReceive()

Инициализировать ожидание макета на фасаде.

from Facade
static MockInterface createFreshMockInstance()

Создать новый экземпляр макета для данного класса.

from Facade
static MockInterface createMock()

Создать новый экземпляр макета для данного класса.

from Facade
static bool isMock()

Определяет, установлен ли макет как экземпляр фасада.

from Facade
static string|null getMockableClass()

Получить класс, подлежащий макетированию, для привязанного экземпляра.

from Facade
static void swap(mixed $instance)

Обновить базовый экземпляр за фасадом.

from Facade
static mixed getFacadeRoot()

Получить корневый объект за фасадом.

from Facade
static string getFacadeAccessor()

Получить зарегистрированное имя компонента.

static mixed resolveFacadeInstance(object|string $name)

Разрешить экземпляр корня фасада из контейнера.

from Facade
static void clearResolvedInstance(string $name)

Очистить разрешенный экземпляр фасада.

from Facade
static void clearResolvedInstances()

Очистить все разрешенные экземпляры.

from Facade
static Application getFacadeApplication()

Получить экземпляр приложения за фасадом.

from Facade
static void setFacadeApplication(Application $app)

Установить экземпляр приложения.

from Facade
static mixed __callStatic(string $method, array $args)

Обработать динамические статические вызовы объекта.

from Facade
static Response make(string $content = '', int $status = 200, array $headers = [])

Без описания

static Response noContent(mixed $status, array $headers = [])

Без описания

static Response view(string $view, array $data = [], int $status = 200, array $headers = [])

Без описания

static JsonResponse json(string|array $data = [], int $status = 200, array $headers = [], int $options)

Без описания

static JsonResponse jsonp(string $callback, string|array $data = [], int $status = 200, array $headers = [], int $options)

Без описания

static StreamedResponse stream(Closure $callback, int $status = 200, array $headers = [])

Без описания

static StreamedResponse streamDownload(Closure $callback, string|null $name = null, array $headers = [], string|null $disposition = 'attachment')

Без описания

static BinaryFileResponse download(SplFileInfo|string $file, string|null $name = null, array $headers = [], string|null $disposition = 'attachment')

Без описания

static BinaryFileResponse file(mixed $file, array $headers = [])

Без описания

static RedirectResponse redirectTo(string $path, int $status = 302, array $headers = [], bool|null $secure = null)

Без описания

static RedirectResponse redirectToRoute(string $route, array $parameters = [], int $status = 302, array $headers = [])

Без описания

static RedirectResponse redirectToAction(string $action, array $parameters = [], int $status = 302, array $headers = [])

Без описания

static RedirectResponse redirectGuest(string $path, int $status = 302, array $headers = [], bool|null $secure = null)

Без описания

static RedirectResponse redirectToIntended(string $default = '/', int $status = 302, array $headers = [], bool|null $secure = null)

Без описания

Подробности

static void resolved(Closure $callback)

Выполнить замыкание, когда фасад был разрешен.

Параметры

Closure $callback

Возвращаемое значение

void
END_OF_DOCUMENT_MARKER

static MockInterface spy()

Преобразовать фасад в шпион Mockery.

Значение возврата

MockInterface

static MockInterface partialMock()

Инициализировать частичный макет на фасаде.

Значение возврата

MockInterface

static Expectation shouldReceive()

Инициализировать ожидание макета на фасаде.

Значение возврата

Expectation

static protected MockInterface createFreshMockInstance()

Создать свежий экземпляр макета для данного класса.

Значение возврата

MockInterface

static protected MockInterface createMock()

Создать свежий экземпляр макета для данного класса.

Значение возврата

MockInterface

static protected bool isMock()

Определяет, установлен ли макет как экземпляр фасада.

Значение возврата

bool

static protected string|null getMockableClass()

Получить класс, подлежащий макетированию, для связанного экземпляра.

Значение возврата

string|null

static void swap(mixed $instance)

Произвести горячую замену базового экземпляра за фасадом.

Параметры

mixed $instance

Значение возврата

void

static mixed getFacadeRoot()

Получить корневой объект за фасадом.

Значение возврата

mixed

static protected string getFacadeAccessor()

Получить зарегистрированное имя компонента.

Значение возврата

string

static protected mixed resolveFacadeInstance(object|string $name)

Разрешить корневой экземпляр фасада из контейнера.

Параметры

object|string $name

Значение возврата

mixed

static void clearResolvedInstance(string $name)

Очистить разрешенный экземпляр фасада.

Параметры

string $name

Значение возврата

void

static void clearResolvedInstances()

Очистить все разрешенные экземпляры.

Значение возврата

void

static Application getFacadeApplication()

Получить экземпляр приложения за фасадом.

Значение возврата

Application

static void setFacadeApplication(Application $app)

Установить экземпляр приложения.

Параметры

Application $app

Значение возврата

void

static mixed __callStatic(string $method, array $args)

Обработать динамические статические вызовы к объекту.

Параметры

string $method
array $args

Значение возврата

mixed

Исключения

RuntimeException

static Response make(string $content = '', int $status = 200, array $headers = [])

Нет описания

Параметры

string $content
int $status
array $headers

Значение возврата

Response

static Response noContent(mixed $status, array $headers = [])

Нет описания

Параметры

mixed $status
array $headers

Значение возврата

Response

static Response view(string $view, array $data = [], int $status = 200, array $headers = [])

Нет описания

Параметры

string $view
array $data
int $status
array $headers

Значение возврата

Response

static JsonResponse json(string|array $data = [], int $status = 200, array $headers = [], int $options)

Нет описания

Параметры

string|array $data
int $status
array $headers
int $options

Значение возврата

JsonResponse

static JsonResponse jsonp(string $callback, string|array $data = [], int $status = 200, array $headers = [], int $options)

Нет описания

Параметры

string $callback
string|array $data
int $status
array $headers
int $options

Значение возврата

JsonResponse
END_OF_DOCUMENT_MARKER

static StreamedResponse stream(Closure $callback, int $status = 200, array $headers = [])

Нет описания

Параметры

Closure $callback
int $status
array $headers

Возвращаемое значение

StreamedResponse

static StreamedResponse streamDownload(Closure $callback, string|null $name = null, array $headers = [], string|null $disposition = 'attachment')

Нет описания

Параметры

Closure $callback
string|null $name
array $headers
string|null $disposition

Возвращаемое значение

StreamedResponse

static BinaryFileResponse download(SplFileInfo|string $file, string|null $name = null, array $headers = [], string|null $disposition = 'attachment')

Нет описания

Параметры

SplFileInfo|string $file
string|null $name
array $headers
string|null $disposition

Возвращаемое значение

BinaryFileResponse

static BinaryFileResponse file(mixed $file, array $headers = [])

Нет описания

Параметры

mixed $file
array $headers

Возвращаемое значение

BinaryFileResponse

static RedirectResponse redirectTo(string $path, int $status = 302, array $headers = [], bool|null $secure = null)

Нет описания

Параметры

string $path
int $status
array $headers
bool|null $secure

Возвращаемое значение

RedirectResponse

static RedirectResponse redirectToRoute(string $route, array $parameters = [], int $status = 302, array $headers = [])

Нет описания

Параметры

string $route
array $parameters
int $status
array $headers

Возвращаемое значение

RedirectResponse

static RedirectResponse redirectToAction(string $action, array $parameters = [], int $status = 302, array $headers = [])

Нет описания

Параметры

string $action
array $parameters
int $status
array $headers

Возвращаемое значение

RedirectResponse

static RedirectResponse redirectGuest(string $path, int $status = 302, array $headers = [], bool|null $secure = null)

Нет описания

Параметры

string $path
int $status
array $headers
bool|null $secure

Возвращаемое значение

RedirectResponse

static RedirectResponse redirectToIntended(string $default = '/', int $status = 302, array $headers = [], bool|null $secure = null)

Нет описания

Параметры

string $default
int $status
array $headers
bool|null $secure

Возвращаемое значение

RedirectResponse

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/Support/Facades/Response.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API