QueueingFactory
interface QueueingFactory implements Factory (View source)
Methods
Cookie | make(string $name, string $value, int $minutes = 0, string $path = null, string $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null) Create a new cookie instance. | from Factory |
Cookie | forever(string $name, string $value, string $path = null, string $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null) Create a cookie that lasts "forever" (five years). | from Factory |
Cookie | forget(string $name, string $path = null, string $domain = null) Expire the given cookie. | from Factory |
void | queue(array ...$parameters) Queue a cookie to send with the next response. | |
unqueue(string $name) Remove a cookie from the queue. | ||
array | getQueuedCookies() Get the cookies which have been queued for the next request. |
Details
Cookie make(string $name, string $value, int $minutes = 0, string $path = null, string $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)
Create a new cookie instance.
Cookie forever(string $name, string $value, string $path = null, string $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)
Create a cookie that lasts "forever" (five years).
Cookie forget(string $name, string $path = null, string $domain = null)
Expire the given cookie.
void queue(array ...$parameters)
Queue a cookie to send with the next response.
unqueue(string $name)
Remove a cookie from the queue.
array getQueuedCookies()
Get the cookies which have been queued for the next request.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Contracts/Cookie/QueueingFactory.html