QueueingFactory
интерфейс QueueingFactory реализует Factory (View source)
Методы
| Cookie | make(string $name, string $value, int $minutes = 0, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)
Создаёт новый экземпляр cookie. | из Factory |
| Cookie | forever(string $name, string $value, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)
Создаёт cookie, который действует «вечно» (пять лет). | из Factory |
| Cookie | forget(string $name, string|null $path = null, string|null $domain = null)
Сбрасывает срок действия заданного cookie. | из Factory |
| void | queue(mixed ...$parameters)
Добавляет cookie в очередь для отправки в следующем ответе. | |
| void | unqueue(string $name, string|null $path = null)
Удаляет cookie из очереди. | |
| array | getQueuedCookies()
Возвращает cookie, которые были добавлены в очередь для следующего запроса. |
Подробности
Cookie make(string $name, string $value, int $minutes = 0, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)
Создаёт новый экземпляр cookie.
Cookie forever(string $name, string $value, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)
Создаёт cookie, который действует «вечно» (пять лет).
Cookie forget(string $name, string|null $path = null, string|null $domain = null)
Сбрасывает срок действия заданного cookie.
void queue(mixed ...$parameters)
Добавляет cookie в очередь для отправки в следующем ответе.
void unqueue(string $name, string|null $path = null)
Удаляет cookie из очереди.
array getQueuedCookies()
Возвращает cookie, которые были добавлены в очередь для следующего запроса.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Contracts/Cookie/QueueingFactory.html