class
Illuminate
/
Cookie
/
CookieValuePrefix
CookieValuePrefix
Methods
public
static
create ( $cookieName , $key ) : string
Create a new cookie value prefix for the given cookie name.
Parameters
- $cookieName string
- $key string
public
static
remove ( $cookieValue ) : string
Remove the cookie value prefix.
Parameters
- $cookieValue string
public
static
validate ( $cookieName , $cookieValue , $key ) : string|null
Validate a cookie value contains a valid prefix. If it does, return the cookie value with the prefix removed. Otherwise, return null.
Parameters
- $cookieName string
- $cookieValue string
- $key string