Description
Make your Laravel app comply with the crazy EU cookie law
This package adds a simple, customizable cookie consent message to your site. When the site loads, the banner appears and lets users consent to cookies. Once consent is given, the banner hides and stays hidden.
What this package does not:
- Include an option to 'Decline' all cookies, which might be required.
- Block trackers and cookies before consent. You need to handle this yourself.
- Include options for different consent categories like "Necessary" or "Marketing".
To display the dialog all you have to do is include this view in your template:
//in your blade template@include('cookie-consent::index')
This will render the following dialog that, when styled, will look very much like this one.
Recent Courses on Laravel Daily
[NEW] NativePHP Mobile v4 with SuperNative: Mini-Course
5 lessons
18 min
[NEW] Mobile Apps: React Native vs Flutter vs NativePHP?
8 lessons
55 min
Practical Laravel Security: Packages, Secrets, Supply-Chain Attacks
7 lessons
43 min read