EncryptCookies
class EncryptCookies (View source)
Properties
| protected Encrypter | $encrypter | The encrypter instance. | |
| protected array | $except | The names of the cookies that should not be encrypted. | 
Methods
| void |  __construct(Encrypter $encrypter)  Create a new CookieGuard instance.  |  |
| void |  disableFor(string|array $cookieName)  Disable encryption for the given cookie name(s).  |  |
| mixed |  handle(Request $request, Closure $next)  Handle an incoming request.  |  |
| Request |  decrypt(Request $request)  Decrypt the cookies on the request.  |  |
| string|array |  decryptCookie(string|array $cookie)  Decrypt the given cookie and return the value.  |  |
| array |  decryptArray(array $cookie)  Decrypt an array based cookie.  |  |
| Response |  encrypt(Response $response)  Encrypt the cookies on an outgoing response.  |  |
| Cookie |  duplicate(Cookie $c, mixed $value)  Duplicate a cookie with a new value.  |  |
| bool |  isDisabled(string $name)  Determine whether encryption has been disabled for the given cookie.  |  
Details
void __construct(Encrypter $encrypter)
Create a new CookieGuard instance.
void disableFor(string|array $cookieName)
Disable encryption for the given cookie name(s).
protected Request decrypt(Request $request)
Decrypt the cookies on the request.
protected string|array decryptCookie(string|array $cookie)
Decrypt the given cookie and return the value.
protected array decryptArray(array $cookie)
Decrypt an array based cookie.
protected Response encrypt(Response $response)
Encrypt the cookies on an outgoing response.
protected Cookie duplicate(Cookie $c, mixed $value)
Duplicate a cookie with a new value.
bool isDisabled(string $name)
Determine whether encryption has been disabled for the given cookie.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/5.3/Illuminate/Cookie/Middleware/EncryptCookies.html