CookieValuePrefix
class CookieValuePrefix (View source)
Methods
static string
create(string $cookieName, string $key)
Create a new cookie value prefix for the given cookie name.
static string
remove(string $cookieValue)
Remove the cookie value prefix.
static string|null
validate(string $cookieName, string $cookieValue, array $keys)
Validate a cookie value contains a valid prefix. If it does, return the cookie value with the prefix removed. Otherwise, return null.
Details
static string
create(string $cookieName, string $key)
Create a new cookie value prefix for the given cookie name.
static string
remove(string $cookieValue)
Remove the cookie value prefix.
static string|null
validate(string $cookieName, string $cookieValue, array $keys)
Validate a cookie value contains a valid prefix. If it does, return the cookie value with the prefix removed. Otherwise, return null.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.