interface 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) 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. |
Create a new cookie instance.
Create a cookie that lasts "forever" (five years).
Expire the given cookie.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Contracts/Cookie/Factory.html