Skip to content

πŸ“¦ v1.1.0 – Preference Modal Access + Nginx Asset Fix

Latest
Compare
Choose a tag to compare
@devrabiul devrabiul released this 21 Jul 16:20

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