Spec-Zone.ru › Laravel 8

Перенаправление

класс Перенаправление расширяет Facade (Просмотреть исходный код)

Свойства

статический защищённый Application $app

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

из Facade
статический защищённый массив $resolvedInstance

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

из Facade

Методы

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 RedirectResponse action(string $action, mixed $parameters = [], int $status = 302, array $headers = [])

Нет описания

static RedirectResponse away(string $path, int $status = 302, array $headers = [])

Нет описания

static RedirectResponse back(int $status = 302, array $headers = [], mixed $fallback)

Нет описания

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

Нет описания

static RedirectResponse home(int $status = 302)

Нет описания

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

Нет описания

static RedirectResponse refresh(int $status = 302, array $headers = [])

Нет описания

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

Нет описания

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

Нет описания

static RedirectResponse signedRoute(string $name, mixed $parameters = [], DateInterval|int $expiration = null, int $status = 302, array $headers = [])

Нет описания

static RedirectResponse temporarySignedRoute(string $name, DateInterval|int $expiration, mixed $parameters = [], int $status = 302, array $headers = [])

Нет описания

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

Нет описания

static UrlGenerator getUrlGenerator()

Нет описания

static void setSession(Store $session)

Нет описания

static void setIntendedUrl(string $url)

Нет описания

Details

static void resolved(Closure $callback)

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

Параметры

Closure $callback

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

void

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 RedirectResponse action(string $action, mixed $parameters = [], int $status = 302, array $headers = [])

Нет описания

Параметры

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

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

RedirectResponse

static RedirectResponse away(string $path, int $status = 302, array $headers = [])

Нет описания

Параметры

string $path
int $status
array $headers

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

RedirectResponse

static RedirectResponse back(int $status = 302, array $headers = [], mixed $fallback)

Нет описания

Параметры

int $status
array $headers
mixed $fallback

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

RedirectResponse

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

Нет описания

Параметры

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

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

RedirectResponse
END_OF_DOCUMENT_MARKER

static RedirectResponse home(int $status = 302)

Нет описания

Параметры

int $status

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

RedirectResponse

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

Нет описания

Параметры

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

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

RedirectResponse

static RedirectResponse refresh(int $status = 302, array $headers = [])

Нет описания

Параметры

int $status
array $headers

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

RedirectResponse

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

Нет описания

Параметры

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

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

RedirectResponse

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

Нет описания

Параметры

string $path
int $status
array $headers

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

RedirectResponse

static RedirectResponse signedRoute(string $name, mixed $parameters = [], DateInterval|int $expiration = null, int $status = 302, array $headers = [])

Нет описания

Параметры

string $name
mixed $parameters
DateInterval|int $expiration
int $status
array $headers

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

RedirectResponse

static RedirectResponse temporarySignedRoute(string $name, DateInterval|int $expiration, mixed $parameters = [], int $status = 302, array $headers = [])

Нет описания

Параметры

string $name
DateInterval|int $expiration
mixed $parameters
int $status
array $headers

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

RedirectResponse

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

Нет описания

Параметры

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

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

RedirectResponse

static UrlGenerator getUrlGenerator()

Нет описания

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

UrlGenerator

static void setSession(Store $session)

Нет описания

Параметры

Store $session

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

void

static void setIntendedUrl(string $url)

Нет описания

Параметры

string $url

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

void

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

Spec-Zone.ru

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