A client library package for Laravel based projects, maintained by the dogado GmbH.
It provides a middleware class that automatically transforms cookies to be
Secure
if the request is SSL
encrypted and, if the browser supports it, sets the
SameSite=None
attribute.
To learn more about SameSite
cookies and how to use them, check out the
web.dev blog from Google or the
Mozilla docs.
- php
^7.3
or^8.0
symfony/http-foundation
version^5.3.7
or^6.0
composer require dogado/laravel-cookie-manager
Add the following class to the appropriate Laravel kernel middleware configuration according to your requirements.
\Dogado\Laravel\CookieManager\Http\Middleware\SecureResponseCookies::class
The MIT License (MIT). Please see License File for more information.