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
Laravel Boost: Deeper Practical Dive
8 lessons
32 min
Marketing for Developers in 2026
7 lessons
52 min
AI Agents/IDEs for Laravel: May 2026 (Claude Code, Codex, OpenCode, etc)
7 lessons
52 min