Guard
class Guard implements HttpKernelInterface (View source)
Properties
| protected HttpKernelInterface | $app | The wrapped kernel implementation. | |
| protected Encrypter | $encrypter | The encrypter instance. | 
Methods
| void |  __construct(HttpKernelInterface $app, Encrypter $encrypter)  Create a new CookieGuard instance.  |  |
| Response |  handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)  Handle the given request and get the response.  |  |
| 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.  |  
Details
void __construct(HttpKernelInterface $app, Encrypter $encrypter)
Create a new CookieGuard instance.
Response handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)
Handle the given request and get the response.
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.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/4.2/Illuminate/Cookie/Guard.html