EncryptCookies
class EncryptCookies
Properties
protected Encrypter | $encrypter | The encrypter instance. |
|
protected array | $except | The names of the cookies that should not be encrypted. |
Methods
Disable encryption for the given cookie name(s).
Decrypt the cookies on the request.
Decrypt the given cookie and return the value.
Decrypt an array based cookie.
Encrypt the cookies on an outgoing response.
Duplicate a cookie with a new value.
Determine whether encryption has been disabled for the given cookie.
Details
at line 34
void
__construct(Encrypter $encrypter)
Create a new CookieGuard instance.
at line 45
void
disableFor(string|array $cookieName)
Disable encryption for the given cookie name(s).
at line 68
protected Request
decrypt(Request $request)
Decrypt the cookies on the request.
at line 91
protected string|array
decryptCookie(string|array $cookie)
Decrypt the given cookie and return the value.
at line 104
protected array
decryptArray(array $cookie)
Decrypt an array based cookie.
at line 123
protected Response
encrypt(Response $response)
Encrypt the cookies on an outgoing response.
at line 145
protected Cookie
duplicate(Cookie $c, mixed $value)
Duplicate a cookie with a new value.
at line 159
bool
isDisabled(string $name)
Determine whether encryption has been disabled for the given cookie.