class Illuminate / Support / Facades / Cookie
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

Cookie

Extends

See

  • \Illuminate\Cookie\CookieJar

Methods

public static

has ( $key ) : bool

Determine if a cookie exists on the request.

Parameters

  • $key string
public static

get ( $key , $default ) : string|array|null

Retrieve a cookie from the request.

Parameters

  • $key string|null
  • $default mixed
protected static

getFacadeAccessor ( ) : string

Get the registered name of the component.