Cookie
class Cookie extends Facade (View source)
Properties
static protected Application|null | $app | The application instance being facaded. |
from Facade |
static protected array | $resolvedInstance | The resolved object instances. |
from Facade |
static protected bool | $cached | Indicates if the resolved instance should be cached. |
from Facade |
Methods
Create a fresh mock instance for the given class.
Get the registered name of the component.
Resolve the facade root instance from the container.
Get the application instance behind the facade.
Handle dynamic, static calls to the object.
Determine if a cookie exists on the request.
Retrieve a cookie from the request.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
in
Facade at line 47
static void
resolved(Closure $callback)
Run a Closure when the facade has been resolved.
static protected MockInterface
createFreshMockInstance()
Create a fresh mock instance for the given class.
static protected mixed
resolveFacadeInstance(string $name)
Resolve the facade root instance from the container.
static string|array|null
get(string|null $key = null, mixed $default = null)
Retrieve a cookie from the request.
static Cookie
make(string $name, string $value, int $minutes, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)
No description
static 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)
No description
static Cookie
forget(string $name, string|null $path = null, string|null $domain = null)
No description
static Cookie|null
queued(string $key, mixed $default = null, string|null $path = null)
No description
static void
expire(string $name, string|null $path = null, string|null $domain = null)
No description
static CookieJar
setDefaultPathAndDomain(string $path, string|null $domain, bool|null $secure = false, string|null $sameSite = null)
No description