Downloads
Stars
Version
Any website cannot use cookie without agree.
composer require pinfort/laravel-cookie-confirm
Attention: Perhaps it is necessary to change the minimum stability of the composer...
php artisan vendor:publish
You will find three new files.
Add middleware to your kernel
in App\Http\Kernel.php near the line 38
protected $middlewareGroups = [
'web' => [
......
+ \Pinfort\LaravelCookieConfirm\Middleware\Confirm::class,
],
......
];