jakub-lipinski/consent-for-laravel
Consent for Laravel is a package for managing user consent records in Laravel apps. It helps implement GDPR-style flows where users grant or revoke permissions, then lets your application check and audit those choices throughout models, requests, and views.
wire:navigate, redirects, history, and locale changes. This makes it a credible buy/configure option for Laravel teams that would otherwise build consent state, banner UI, audit notices, script gating, preferences, and expiry handling themselves.consent:navigated event and guarded helpers support SPA/Livewire measurement planning, but the adapter sends no automatic SPA measurements. Product and analytics teams must decide whether and how to register listeners and avoid duplicate GA4/history measurement.Consider adoption when:
cs-CZ, nl-NL, nl-BE.consent.js, banner.js, and consent.css.Look elsewhere or defer when:
consent:navigated, but explicitly does not send automatic SPA measurements.data-consent-container, audit notice, wire:ignore, presentation key, and locale/context attributes.Executive summary: This release makes the consent package materially more suitable for modern Laravel products. Optional Livewire 3/4 support means teams can add consent-aware navigation and component updates without making Livewire mandatory. Czech and Dutch translations expand market readiness to nine bundled languages, including regional fallbacks. Existing saved preferences and expiry remain compatible when policy, services, and consent settings are unchanged, and there is no new database migration, cookie migration, or automatic consent reset.
For engineering: The upgrade is backward-compatible by default, with optional livewire.enabled and livewire.navigation settings defaulting to true and auto. Teams should refresh customized head/banner views and all three published assets together, clear compiled Blade/Livewire caches, cache-bust external assets, and test real CSP behavior. Livewire integration includes script activation pausing/resuming, stable keys, locale updates, and a consent:navigated event, but no automatic SPA measurements. Applications without Livewire need no new frontend dependency or build.
For product/compliance: The package continues to support consent refusal, audit recovery, withdrawal signals, signed audit notices, saved-choice fingerprints, and expiry rules. Localization now covers complete banner/dialog and signed audit notice content in Czech and Dutch, with fallback behavior for regional locales. Product teams should still validate market-specific legal copy, analytics measurement choices, and withdrawal flows, especially where SPA navigation or running trackers are involved.
Rollout recommendation: Treat v1.5.0 as a low-migration-risk feature upgrade for existing adopters, but a moderate integration-risk upgrade for Livewire-heavy or heavily customized deployments. Pilot on a representative Livewire navigation flow, verify CSP and asset refresh, confirm translation fallback behavior, and validate that measurement listeners for consent:navigated are registered once and do not duplicate existing analytics views.
How can I help you explore Laravel packages today?