Файл: app/Http/Middleware/EncryptCookies.php
Строк: 35
<?php
namespace AppHttpMiddleware;
use IlluminateCookieMiddlewareEncryptCookies as Middleware;
class EncryptCookies extends Middleware
{
    /**
     * The names of the cookies that should not be encrypted.
     *
     * @var array
     */
    protected $except = [
        'dark_mode',
        'cookie_law'
    ];
    /**
     * Determine whether encryption has been disabled for the given cookie.
     *
     * @param  string $name
     * @return bool
     */
    public function isDisabled($name)
    {
        // Do not encrypt the announcement_id cookies
        if (preg_match('/announcement_w+/', $name)) {
            return true;
        }
        return in_array($name, $this->except);
    }
}