difficulties undestanding the handle method of the EncryptCookies middleware

Posted 3 years ago by s4njim3d

Hi, I've been trying to understand the code of the ecryptcookies lately (which is in Illuminate\Cookie\Middleware\EncryptCookies) but I couldn't undestand it

public function handle($request, Closure $next)
    {
        return $this->encrypt($next($this->decrypt($req uest)));
    }

Thank you.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.