CookieJar::forever()

Cookie forever(string $name, string $value, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true) Create a cookie that lasts "forever" (five years). Parameters string $name string $value string $path string $domain bool $secure bool $httpOnly Return Value Cookie

CookieJar

CookieJar class CookieJar implements QueueingFactory (View source) Methods Cookie make(string $name, string $value, int $minutes, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true) Create a new cookie instance. Cookie forever(string $name, string $value, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true) Create a cookie that lasts "forever" (five years). Cookie forget(string $name, string $path = null, s

Cookie::__callStatic()

static mixed __callStatic(string $method, array $args) Handle dynamic, static calls to the object. Parameters string $method array $args Return Value mixed

Cookie::swap()

static void swap(mixed $instance) Hotswap the underlying instance behind the facade. Parameters mixed $instance Return Value void

Cookie::shouldReceive()

static Expectation shouldReceive() Initiate a mock expectation on the facade. Return Value Expectation

Cookie::setFacadeApplication()

static void setFacadeApplication(Application $app) Set the application instance. Parameters Application $app Return Value void

Cookie::has()

static bool has(string $key) Determine if a cookie exists on the request. Parameters string $key Return Value bool

Cookie::getFacadeRoot()

static mixed getFacadeRoot() Get the root object behind the facade. Return Value mixed

Cookie::getFacadeApplication()

static Application getFacadeApplication() Get the application instance behind the facade. Return Value Application

Cookie::get()

static string get(string $key = null, mixed $default = null) Retrieve a cookie from the request. Parameters string $key mixed $default Return Value string