protected function unpackCookies(Request $request): Request
    {
        $cookies = $request->getCookieParams();

        foreach ($cookies as $name => $cookie) {
            if (!$this->isProtected($name)) {
                //Nothing to protect
                continue;
            }

            $cookies[$name] = $this->decodeCookie($cookie);
        }

        return $request->withCookieParams($cookies);
    }
protected function unpackCookies(Request $request): Request
    {
        $cookies = $request->getCookieParams();

        foreach ($cookies as $name => $cookie) {
            if (!$this->isProtected($name)) {
                //Nothing to protect
                continue;
            }

            $cookies[$name] = $this->decodeCookie($cookie);
        }

        return $request->withCookieParams($cookies);
    }
protected function unpackCookies ( Request $ request ) : Request { $ cookies = $ request -> getCookieParams ( ) ; foreach ( $ cookies as $ name => $ cookie ) { if ( ! $ this -> isProtected ( $ name ) ) { //Nothing to protect continue ; } $ cookies [ $ name ] = $ this -> decodeCookie ( $ cookie ) ; } return $ request -> withCookieParams ( $ cookies ) ; }
Unpack incoming cookies and decrypt their content.

@param Request $request
@return Request
Unpack incoming cookies and decrypt their content .