CookieServiceProvider::commands()

void commands(array|mixed $commands) Register the package's custom Artisan commands. Parameters array|mixed $commands Return Value void

CookieServiceProvider

CookieServiceProvider class CookieServiceProvider extends ServiceProvider (View source) Methods void __construct(Application $app) Create a new service provider instance. from ServiceProvider void register() Register the service provider. static array pathsToPublish(string $provider = null, string $group = null) Get the paths to publish. from ServiceProvider void commands(array|mixed $commands) Register the package's custom Artisan commands. from ServiceProvider array pro

CookieJar::unqueue()

unqueue(string $name) Remove a cookie from the queue. Parameters string $name

CookieJar::setDefaultPathAndDomain()

$this setDefaultPathAndDomain(string $path, string $domain, bool $secure = false) Set the default path and domain for the jar. Parameters string $path string $domain bool $secure Return Value $this

CookieJar::queued()

Cookie queued(string $key, mixed $default = null) Get a queued cookie instance. Parameters string $key mixed $default Return Value Cookie

CookieJar::queue()

void queue() Queue a cookie to send with the next response. Return Value void

CookieJar::make()

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. Parameters string $name string $value int $minutes string $path string $domain bool $secure bool $httpOnly Return Value Cookie

CookieJar::hasQueued()

bool hasQueued(string $key) Determine if a cookie has been queued. Parameters string $key Return Value bool

CookieJar::getQueuedCookies()

array getQueuedCookies() Get the cookies which have been queued for the next request. Return Value array

CookieJar::forget()

Cookie forget(string $name, string $path = null, string $domain = null) Expire the given cookie. Parameters string $name string $path string $domain Return Value Cookie