Запрос
класс Запрос расширяет Facade (View source)
Свойства
| static protected Application | $app | Экземпляр приложения, к которому осуществляется фасадный доступ. | из Facade |
| static protected массив | $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 Closure | getRouteResolver() Нет описания | |
| static Closure | getUserResolver() Нет описания | |
| static Request | capture() Нет описания | |
| static Request | createFrom(Request $from, Request|null $to = null) Нет описания | |
| static Request | createFromBase(Request $request) Нет описания | |
| static Request | duplicate(array|null $query = null, array|null $request = null, array|null $attributes = null, array|null $cookies = null, array|null $files = null, array|null $server = null) Нет описания | |
| static Request | instance() Нет описания | |
| static Request | merge(array $input) Нет описания | |
| static Request | replace(array $input) Нет описания | |
| static Request | setJson(ParameterBag $json) Нет описания | |
| static Request | setRouteResolver(Closure $callback) Нет описания | |
| static Request | setUserResolver(Closure $callback) Нет описания | |
| static UploadedFile[]|array|null | file(string|null $key = null, mixed $default = null) Нет описания | |
| static Route|object|string | route(string|null $param = null, string|null $default = null) Нет описания | |
| static Store | session() Нет описания | |
| static Store|null | getSession() Нет описания | |
| static ParameterBag|mixed | json(string|null $key = null, mixed $default = null) Нет описания | |
| static array | all(array|mixed|null $keys = null) Нет описания | |
| static array | allFiles() Нет описания |
| static array | except(array|mixed $keys) Нет описания | |
| static array | ips() Нет описания | |
| static array | keys() Нет описания | |
| static array | only(array|mixed $keys) Нет описания | |
| static array | segments() Нет описания | |
| static array | toArray() Нет описания | |
| static array | validate(array $rules, mixed $params) Нет описания | |
| static array | validateWithBag(string $errorBag, array $rules, mixed $params) Нет описания | |
| static bool | accepts(string|array $contentTypes) Нет описания | |
| static bool | acceptsAnyContentType() Нет описания | |
| static bool | acceptsHtml() Нет описания | |
| static bool | acceptsJson() Нет описания | |
| static bool | ajax() Нет описания | |
| static bool | anyFilled(string|array $key) Нет описания | |
| static bool | exists(string|array $key) Нет описания | |
| static bool | expectsJson() Нет описания | |
| static bool | filled(string|array $key) Нет описания | |
| static bool | fullUrlIs(mixed $patterns) Нет описания | |
| static bool | has(string|array $key) Нет описания | |
| static bool | hasAny(string|array $key) Нет описания | |
| static bool | hasCookie(string $key) Нет описания | |
| static bool | hasFile(string $key) Нет описания | |
| static bool | hasHeader(string $key) Нет описания | |
| static bool | hasValidSignature(bool $absolute = true) Нет описания | |
| static bool | is(mixed $patterns) Нет описания | |
| static bool | isJson() Нет описания | |
| static bool | matchesType(string $actual, string $type) Нет описания | |
| static bool | offsetExists(string $offset) Нет описания | |
| static bool | pjax() Нет описания | |
| static bool | prefers(string|array $contentTypes) Нет описания | |
| static bool | prefetch() Нет описания | |
| static bool | routeIs(mixed $patterns) Нет описания | |
| static bool | secure() Нет описания | |
| static bool | wantsJson() Нет описания | |
| static mixed | filterFiles(mixed $files) Нет описания | |
| static mixed | offsetGet(string $offset) Нет описания | |
| static mixed | user(string|null $guard = null) Нет описания | |
| static string | decodedPath() Нет описания | |
| static string | fingerprint() Нет описания | |
| static string | format(mixed $default) Нет описания | |
| static string | fullUrl() Нет описания | |
| static string | fullUrlWithQuery(array $query) Нет описания | |
| static string | method() Нет описания | |
| static string | path() Нет описания | |
| static string | root() Нет описания | |
| static string | url() Нет описания | |
| static string | userAgent() Нет описания | |
| static string|array | old(string|null $key = null, string|array|null $default = null) Нет описания | |
| static string|array|null | cookie(string|null $key = null, string|array|null $default = null) Нет описания | |
| static string|array|null | header(string|null $key = null, string|array|null $default = null) Нет описания | |
| static string|array|null | input(string|null $key = null, string|array|null $default = null) Нет описания | |
| static string|array|null | post(string|null $key = null, string|array|null $default = null) Нет описания |
| статический string|array|null | query(string|null $key = null, string|array|null $default = null) Описание отсутствует | |
| статический string|array|null | server(string|null $key = null, string|array|null $default = null) Описание отсутствует | |
| статический string|null | bearerToken() Описание отсутствует | |
| статический string|null | ip() Описание отсутствует | |
| статический string|null | segment(int $index, string|null $default = null) Описание отсутствует | |
| статический void | flash() Описание отсутствует | |
| статический void | flashExcept(array|mixed $keys) Описание отсутствует | |
| статический void | flashOnly(array|mixed $keys) Описание отсутствует | |
| статический void | flush() Описание отсутствует | |
| статический void | offsetSet(string $offset, mixed $value) Описание отсутствует | |
| статический void | offsetUnset(string $offset) Описание отсутствует | |
| статический void | setLaravelSession(Session $session) Описание отсутствует |
Подробности
статический void resolved(Closure $callback)
Выполнить замыкание, когда фасад был разрешен.
статический MockInterface spy()
Преобразовать фасад в шпиона Mockery.
статический MockInterface partialMock()
Инициализировать частичный макет на фасаде.
статический Expectation shouldReceive()
Инициализировать ожидание макета на фасаде.
статический защищенный MockInterface createFreshMockInstance()
Создать свежий экземпляр макета для данного класса.
статический защищенный MockInterface createMock()
Создать свежий экземпляр макета для данного класса.
статический защищенный bool isMock()
Определяет, установлен ли макет как экземпляр фасада.
статический защищенный string|null getMockableClass()
Получить класс, который можно смоделировать, для связанного экземпляра.
статический void swap(mixed $instance)
Заменить основной экземпляр за фасадом.
статический mixed getFacadeRoot()
Получить корневый объект за фасадом.
статический защищенный string getFacadeAccessor()
Получить зарегистрированное имя компонента.
статический защищенный mixed resolveFacadeInstance(object|string $name)
Разрешить экземпляр корневого фасада из контейнера.
статический void clearResolvedInstance(string $name)
Очистить разрешенный экземпляр фасада.
статический void clearResolvedInstances()
Очистить все разрешенные экземпляры.
статический Application getFacadeApplication()
Получить экземпляр приложения за фасадом.
статический void setFacadeApplication(Application $app)
Установить экземпляр приложения.
статический mixed __callStatic(string $method, array $args)
Обработка динамических, статических вызовов объекта.
статический Closure getRouteResolver()
Описание отсутствует
static Closure getUserResolver()
Без описания
static Запрос capture()
Без описания
static Запрос createFromBase(Запрос $request)
Без описания
static Запрос duplicate(array|null $query = null, array|null $request = null, array|null $attributes = null, array|null $cookies = null, array|null $files = null, array|null $server = null)
Без описания
static Запрос instance()
Без описания
static Запрос merge(array $input)
Без описания
static Запрос replace(array $input)
Без описания
static Запрос setJson(ParameterBag $json)
Без описания
static UploadedFile[]|array|null file(string|null $key = null, mixed $default = null)
Без описания
static Route|object|string route(string|null $param = null, string|null $default = null)
Без описания
static Хранилище session()
Без описания
static Хранилище|null getSession()
Без описания
static ParameterBag|mixed json(string|null $key = null, mixed $default = null)
Без описания
static array all(array|mixed|null $keys = null)
Без описания
static array allFiles()
Без описания
static array except(array|mixed $keys)
Без описания
static array ips()
Без описания
static array keys()
Без описания
static array only(array|mixed $keys)
Без описания
static array segments()
Без описания
static array toArray()
Без описания
static array validate(array $rules, mixed $params)
Без описания
static array validateWithBag(string $errorBag, array $rules, mixed $params)
Без описания
static bool accepts(string|array $contentTypes)
Без описания
static bool acceptsAnyContentType()
Без описания
static bool acceptsHtml()
Без описания
static bool acceptsJson()
Без описания
static bool ajax()
Без описания
static bool anyFilled(string|array $key)
Без описания
static bool exists(string|array $key)
Без описания
static bool expectsJson()
Без описания
static bool filled(string|array $key)
Без описания
static bool fullUrlIs(mixed $patterns)
Без описания
static bool has(string|array $key)
Без описания
static bool hasAny(string|array $key)
Без описания
static bool hasCookie(string $key)
Без описания
static bool hasFile(string $key)
Без описания
static bool hasHeader(string $key)
Без описания
static bool hasValidSignature(bool $absolute = true)
Без описания
static bool is(mixed $patterns)
Без описания
static bool isJson()
Без описания
static bool matchesType(string $actual, string $type)
Без описания
static bool offsetExists(string $offset)
Без описания
static bool pjax()
Без описания
static bool prefers(string|array $contentTypes)
Без описания
static bool prefetch()
Без описания
static bool routeIs(mixed $patterns)
Без описания
static bool secure()
Без описания
static bool wantsJson()
Без описания
static mixed filterFiles(mixed $files)
Без описания
static mixed offsetGet(string $offset)
Без описания
static mixed user(string|null $guard = null)
Без описания
static string decodedPath()
Без описания
static string fingerprint()
Без описания
static string format(mixed $default)
Без описания
static string fullUrl()
Без описания
static string fullUrlWithQuery(array $query)
Без описания
static string method()
Без описания
static string path()
Без описания
static string root()
Без описания
static string url()
Без описания
static string userAgent()
Без описания
static string|array old(string|null $key = null, string|array|null $default = null)
Без описания
static string|array|null cookie(string|null $key = null, string|array|null $default = null)
Без описания
static string|array|null header(string|null $key = null, string|array|null $default = null)
Без описания
static string|array|null input(string|null $key = null, string|array|null $default = null)
Без описания
static string|array|null post(string|null $key = null, string|array|null $default = null)
Без описания
static string|array|null query(string|null $key = null, string|array|null $default = null)
Без описания
static string|array|null server(string|null $key = null, string|array|null $default = null)
Без описания
static string|null bearerToken()
Без описания
static string|null ip()
Без описания
static string|null segment(int $index, string|null $default = null)
Без описания
static void flash()
Без описания
static void flashExcept(array|mixed $keys)
Без описания
static void flashOnly(array|mixed $keys)
Без описания
static void flush()
Без описания
static void offsetSet(string $offset, mixed $value)
Без описания
static void offsetUnset(string $offset)
Без описания
static void setLaravelSession(Session $session)
Без описания
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Support/Facades/Request.html