QueueingFactory
interface QueueingFactory implements Factory (View source)
Methods
Create a new cookie instance.
Create a cookie that lasts "forever" (five years).
Expire the given cookie.
Queue a cookie to send with the next response.
Remove a cookie from the queue.
Get the cookies which have been queued for the next request.
Details
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)
Create a new cookie instance.
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)
Create a cookie that lasts "forever" (five years).
Cookie
forget(string $name, string|null $path = null, string|null $domain = null)
Expire the given cookie.
void
queue(array ...$parameters)
Queue a cookie to send with the next response.
void
unqueue(string $name, string|null $path = null)
Remove a cookie from the queue.
array
getQueuedCookies()
Get the cookies which have been queued for the next request.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.