EncryptCookies (Cookie\Middleware)

EncryptCookies

class EncryptCookies (View source)

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.

bool isDisabled(string $name)

Determine whether encryption has been disabled for the given cookie.

Details

void __construct(Encrypter $encrypter)

Create a new CookieGuard instance.

Parameters

Encrypter $encrypter

Return Value

void

void disableFor(string|array $cookieName)

Disable encryption for the given cookie name(s).

Parameters

string|array $cookieName

Return Value

void

mixed handle(Request $request, Closure $next)

Handle an incoming request.

Parameters

Request $request
Closure $next

Return Value

mixed

bool isDisabled(string $name)

Determine whether encryption has been disabled for the given cookie.

Parameters

string $name

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Cookie/Middleware/EncryptCookies.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部