Hey folks! π
I just released a lightweight, developer-friendly cookie consent plugin for Laravel 11+ projects. Itβs focused on real GDPR/DSGVO compliance β with a configurable modal, full Alpine.js support, language preferences, and real-time cookie blocking.
πΉ Easy to install
πΉ No frontend lock-in (customizable view & JS logic)
πΉ Works with Tailwind or plain CSS
πΉ Built for modern Laravel stacks
Check it out here:
π https://github.com/martinschenk/laravel-cookie-consent
Feedback, stars βοΈ and contributions are very welcome! π
Top comments (1)
For developers building apps in (or for) the EU:
π You legally must not set any non-essential cookies before explicit user consent.
This includes analytics, ads (like Google Ads), YouTube embeds, etc.
Also:
Even cookies used by your application (like for language preferences or UI settings) must not be set unless consent is already given β unless theyβre strictly necessary.
π‘ Thatβs exactly why I built this Laravel plugin.
It handles all of this out of the box:
β’ No cookies are set too early
β’ Full modal-based consent flow
β’ Users can reopen the modal anytime to update preferences
β’ Revoking consent automatically blocks & removes cookies again (like Google Ads)
β’ Works great with Alpine.js & Tailwind β or plain setups
β’ Super easy to install & customize
Check it out:
π github.com/martinschenk/laravel-co...
Hope it saves you a ton of time β and legal headaches.