Releases: devrabiul/laravel-cookie-consent
📦 v1.1.0 – Preference Modal Access + Nginx Asset Fix
📦 v1.1.0 – Preference Modal Access + Nginx Asset Fix
✨ New Features
-
🔁 Cookie Preferences Reopen Support
In compliance with UK ICO and GDPR regulations, users can now revisit and change their cookie preferences at any time.-
Add a link anywhere in your app to reopen the preferences modal:
<a onclick="showHideToggleCookiePreferencesModal()">Change Cookie Preferences</a>
or
<a class="showHideToggleCookiePreferencesModal">Change Cookie Preferences</a>
-
Adds support for both inline
onclick
and class-based toggling (no extra JS needed). -
Triggers the same modal UI shown on first visit.
-
🛠️ Fixes & Improvements
-
Nginx Asset Loading Fix
Resolved issues where cookie banner assets weren’t being loaded properly in some Nginx setups.- Assets now reference correct public paths and respect Laravel's asset helper behavior.
📥 How to Upgrade
Update the package using Composer:
composer update devrabiul/laravel-cookie-consent
Re-publish assets if needed:
php artisan vendor:publish --provider="Devrabiul\CookieConsent\CookieConsentServiceProvider"
🔄 Final Steps
Clear your config cache to apply changes:
php artisan config:clear
v1.0.2
📦 v1.0.2 – Custom Translations Flow Added
Release Date: April 23, 2025
🛠️ Enhancements & Fixes
- Custom Translation Flow
Introduced a more streamlined and flexible system for managing translations.- All translatable strings can now be fully customized through your own language files.
- This improvement enhances localization support, making it easier to adapt the cookie consent UI for multilingual websites.
📥 How to Upgrade
To update the package, run the following command:
composer update devrabiul/laravel-cookie-consent
After updating, re-publish the configuration file:
php artisan vendor:publish --provider="Devrabiul\CookieConsent\CookieConsentServiceProvider"
⚠️ Important: Delete the existingconfig/laravel-cookie-consent.php
file before publishing the updated version.
🔄 Final Steps
Clear your cached configuration to ensure changes take effect:
php artisan config:clear
📦 v1.0.1 – Bug Fix Release
📦 v1.0.1 – Bug Fix Release
Released on: April 16, 2025
🐛 Fixed
- Cookie Categories Visibility Issue #1
Fixed an issue where enabling or disabling cookie categories via thelaravel-cookie-consent.php
config file or through the JavaScriptoptions
array had no effect on which cookie categories were shown in the cookie preferences box.- All cookie categories were previously shown regardless of the configuration.
- Now, only the categories explicitly enabled in the config or passed to the JS options will be displayed.
Special thanks to @peterbormans for reporting this issue 🙏
📥 How to Update
If you're using Composer:
composer update devrabiul/laravel-cookie-consent
Or to update just this package:
composer require devrabiul/laravel-cookie-consent
📌 Notes
- Clear any cached config if needed:
php artisan config:clear
Initial Release - v1.0.0
Laravel Cookie Consent
A GDPR-compliant solution offering enterprise-grade compliance with fully customizable cookie banners for Laravel applications. Simplifies regulatory requirements while maintaining excellent user experience and complete customization capabilities.
Features
- 🔥 One-Click Implementation – Simple installation via Composer with auto-loaded assets
- ⚡ Zero Performance Impact – Lightweight with lazy-loaded components
- 🌍 RTL & i18n Support – Full right-to-left compatibility + multilingual translations
- 🌙 Dark Mode Support – Auto dark/light mode matching system preferences
- 🛡 Granular Consent Control – Category-level cookie management (necessary/analytics/marketing)
- 📦 Complete Customization – Override every color, text, and layout via config
- 📱 Responsive Design – Perfectly adapts to all devices (mobile/tablet/desktop)