Download the PHP package w3designweb/laravel-cookie-consent without Composer
On this page you can find all versions of the php package w3designweb/laravel-cookie-consent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download w3designweb/laravel-cookie-consent
More information about w3designweb/laravel-cookie-consent
Files in w3designweb/laravel-cookie-consent
Package laravel-cookie-consent
Short Description This package for Laravel allows you to manage user cookies consents in compliance with privacy regulations.
License MIT
Homepage https://github.com/w3designweb/laravel-cookie-consent
Informations about the package laravel-cookie-consent
Cookie consent for Laravel
With this package it will be easy for you to declare all the cookies used on your website, asking for consent through a banner that will be activated automatically through a Laravel Middleware.
Each user can accept or not the different types of cookies, thus deciding whether to enable the related functions, and also can change the consents given over time.
Installation
Require the package with Composer:
Laravel
For Laravel 5.4 and lower, add the service provider to config/app.php
:
Lumen
Add the service provider to bootstrap/app.php
:
Configuration
Then, add this configuration to your .env file to enable the cookie banner. By default the value is set to "true", but it will be sufficient to indicate "false" to not show the cookie banner.
After that, add the middleware in the group of your choice, inside the App/Http/Kernel.php file, per example:
Publish the package files to manage your cookies list in the config file, the blade template on the view file and the assets in CSS and JS file:
All versions of laravel-cookie-consent with dependencies
illuminate/routing Version ^6|^7|^8|^9|^10
illuminate/session Version ^6|^7|^8|^9|^10
illuminate/support Version ^6|^7|^8|^9|^10