Ответ
класс Ответ расширяет 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)
Выполнить замыкание, когда фасад был разрешен.
static MockInterface spy()
Преобразовать фасад в шпион Mockery.
static MockInterface partialMock()
Инициализировать частичный макет на фасаде.
static Expectation shouldReceive()
Инициализировать ожидание макета на фасаде.
static protected MockInterface createFreshMockInstance()
Создать свежий экземпляр макета для данного класса.
static protected MockInterface createMock()
Создать свежий экземпляр макета для данного класса.
static protected bool isMock()
Определяет, установлен ли макет как экземпляр фасада.
static protected string|null getMockableClass()
Получить класс, подлежащий макетированию, для связанного экземпляра.
static void swap(mixed $instance)
Произвести горячую замену базового экземпляра за фасадом.
static mixed getFacadeRoot()
Получить корневой объект за фасадом.
static protected string getFacadeAccessor()
Получить зарегистрированное имя компонента.
static protected mixed resolveFacadeInstance(object|string $name)
Разрешить корневой экземпляр фасада из контейнера.
static void clearResolvedInstance(string $name)
Очистить разрешенный экземпляр фасада.
static void clearResolvedInstances()
Очистить все разрешенные экземпляры.
static Application getFacadeApplication()
Получить экземпляр приложения за фасадом.
static void setFacadeApplication(Application $app)
Установить экземпляр приложения.
static mixed __callStatic(string $method, array $args)
Обработать динамические статические вызовы к объекту.
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)
Нет описания
© 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