π¦ 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