Cookie

Illuminate\Support\Facades\Cookie

class src/Illuminate/Support/Facades/Cookie.php

expire

v11.0.0 以前から

static @method

static expire(string $name, string|null $path = null, string|null $domain = null): void
  1. v11.0.0 追加
    変更後
    @method static expire(string $name, string|null $path = null, string|null $domain = null): void

flushMacros

v11.0.0 以前から

static @method

static flushMacros(): void
  1. v11.0.0 追加
    変更後
    @method static flushMacros(): void

flushQueuedCookies

v11.0.0 以前から

static @method

static flushQueuedCookies(): \Illuminate\Cookie\CookieJar
  1. v11.0.0 追加
    変更後
    @method static flushQueuedCookies(): \Illuminate\Cookie\CookieJar

forever

v11.0.0 以前から

static @method

static 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): \Symfony\Component\HttpFoundation\Cookie
  1. v11.0.0 追加
    変更後
    @method static 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): \Symfony\Component\HttpFoundation\Cookie

forget

v11.0.0 以前から

static @method

static forget(string $name, string|null $path = null, string|null $domain = null): \Symfony\Component\HttpFoundation\Cookie
  1. v11.0.0 追加
    変更後
    @method static forget(string $name, string|null $path = null, string|null $domain = null): \Symfony\Component\HttpFoundation\Cookie

get

v11.0.0 以前から

static

static get($key = null, $default = null)
@param string|null $key
@param mixed $default
@return string|array|null
  1. v11.0.0 追加
    変更後
    static get($key = null, $default = null) [@param string|null $key, @param mixed $default, @return string|array|null]

getQueuedCookies

v11.0.0 以前から

static @method

static getQueuedCookies(): \Symfony\Component\HttpFoundation\Cookie[]
  1. v11.0.0 追加
    変更後
    @method static getQueuedCookies(): \Symfony\Component\HttpFoundation\Cookie[]

has

v11.0.0 以前から

static

static has($key)
@param string $key
@return bool
  1. v11.0.0 追加
    変更後
    static has($key) [@param string $key, @return bool]

hasMacro

v11.0.0 以前から

static @method

static hasMacro(string $name): bool
  1. v11.0.0 追加
    変更後
    @method static hasMacro(string $name): bool

hasQueued

v11.0.0 以前から

static @method

static hasQueued(string $key, string|null $path = null): bool
  1. v11.0.0 追加
    変更後
    @method static hasQueued(string $key, string|null $path = null): bool

macro

v11.0.0 以前から

static @method

static macro(string $name, object|callable $macro): void
  1. v11.0.0 追加
    変更後
    @method static macro(string $name, object|callable $macro): void
  2. v11.8.0 シグネチャ変更
    変更前
    @method static macro(string $name, object|callable $macro): void
    変更後
    @method static macro(string $name, object|callable $macro, object|callable $macro = null): void
  3. v11.23.3 シグネチャ変更
    変更前
    @method static macro(string $name, object|callable $macro, object|callable $macro = null): void
    変更後
    @method static macro(string $name, object|callable $macro): void

make

v11.0.0 以前から

static @method

static 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): \Symfony\Component\HttpFoundation\Cookie
  1. v11.0.0 追加
    変更後
    @method static 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): \Symfony\Component\HttpFoundation\Cookie

mixin

v11.0.0 以前から

static @method

static mixin(object $mixin, bool $replace = true): void
  1. v11.0.0 追加
    変更後
    @method static mixin(object $mixin, bool $replace = true): void

queue

v11.0.0 以前から

static @method

static queue(mixed ...$parameters): void
  1. v11.0.0 追加
    変更後
    @method static queue(mixed ...$parameters): void

queued

v11.0.0 以前から

static @method

static queued(string $key, mixed|\Closure $default = null, string|null $path = null): \Symfony\Component\HttpFoundation\Cookie|mixed
  1. v11.0.0 追加
    変更後
    @method static queued(string $key, mixed $default = null, string|null $path = null): \Symfony\Component\HttpFoundation\Cookie|null
  2. v13.23.0 シグネチャ変更
    変更前
    @method static queued(string $key, mixed $default = null, string|null $path = null): \Symfony\Component\HttpFoundation\Cookie|null
    変更後
    @method static queued(string $key, mixed|\Closure $default = null, string|null $path = null): \Symfony\Component\HttpFoundation\Cookie|mixed

setDefaultPathAndDomain

v11.0.0 以前から

static @method

static setDefaultPathAndDomain(string $path, string|null $domain, bool|null $secure = false, string|null $sameSite = null): \Illuminate\Cookie\CookieJar
  1. v11.0.0 追加
    変更後
    @method static setDefaultPathAndDomain(string $path, string|null $domain, bool|null $secure = false, string|null $sameSite = null): \Illuminate\Cookie\CookieJar

unqueue

v11.0.0 以前から

static @method

static unqueue(string $name, string|null $path = null): void
  1. v11.0.0 追加
    変更後
    @method static unqueue(string $name, string|null $path = null): void