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, string $key)
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, string $key)
Validate a cookie value contains a valid prefix. If it does, return the cookie value with the prefix removed. Otherwise, return null.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Cookie/CookieValuePrefix.html