class CookieFactory
Properties
| protected string | $prefix |
|
||
| protected string | $path |
|
||
| protected string | $domain |
|
||
| protected bool | $secure |
|
||
| protected string|null | $samesite |
|
Methods
SetCookie
make(string $name, string|null $value = null, int|null $maxAge = null)
Make a new cookie instance.
Details
at
line 43
SetCookie
make(string $name, string|null $value = null, int|null $maxAge = null)
Make a new cookie instance.
This method returns a cookie instance for use with the Set-Cookie HTTP header. It will be pre-configured according to Flarum's base URL and protocol.
at
line 69
SetCookie
expire(string $name)
Make an expired cookie instance.
at
line 77
string
getName(string $name)
Get a cookie name.