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

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