pushery/legal-consent-for-laravel
Legal consent management for Laravel: versioned terms, privacy policies, and cookie consent, with middleware, Blade components, and audit-ready acceptance tracking. GDPR-friendly, configurable, and quick to integrate into new or existing apps, with publishable config and migrations.
legal-consent:verify-ledger). That turns "we have a checkbox" into an auditable artifact — a decision you can take to legal, security review, or a regulator without building a bespoke evidence pipeline.legal-consent:changes and legal-consent:rerender support the content-change workflow.sourceVersion lets a source (CMS, DMS, contract system) supply its own revision counter, stored verbatim alongside SemVer on the published version, on each consent, and in history(). It is inert for SemVer logic — it decides nothing — so it cannot break existing version resolution. For product this means you can adopt the package alongside an existing document repository rather than migrating authorship, and you still get a defensible link between "what the source published" and "what the user accepted."pushery/wirekit 2.67.0, with plain-view fallback below it and legal-consent:doctor naming the floor. This is a concrete make-or-buy line: adopt the shipped dialog/views for speed, or publish and own them (vendor:publish --tag=legal-consent-wirekit) if your design system demands it — accepting that published copies do not receive view fixes automatically.legal-consent:dispatch-notices.canceled since 0.45.0). If notice delivery is part of your compliance story, this is the difference between "we send notices" and "we can show notices were sent, and know when they weren't."verify-ledger, cache-flush, rerender, changes each document how they treat tenants). That supports shipping consent as a per-workspace/per-brand capability rather than a single-tenant afterthought.rerender, changes, cache-flush, and verify-ledger. Marginal, but it lowers the cost of onboarding engineers to the package's operational surface.Consider it when:
sourceVersion without letting that external counter govern SemVer resolution.php artisan migrate as part of upgrades and reading upgrade notes — this release requires it, and consent row hashes are preserved because a source version is folded into the record hash only when present.Look elsewhere when:
vendor:publish --force is required for anyone who published views earlier — a fix you must choose to take.For executives (one paragraph): We can stop treating consent as a front-end checkbox and start treating it as evidence. This Laravel package records which version of which legal text a person agreed to, keeps a hash-chained ledger we can verify on demand, and gives us an alerting contract for the background jobs that deliver notices — so our answer to "prove it" is a command, not a project. The new release makes it practical to keep authoring legal text in our existing document system: the source's own revision number is recorded verbatim next to the package's version and is deliberately inert, meaning it adds traceability without changing how versions resolve. Cost is bounded: it is a library we install and migrate, not a platform we buy, and this release also removes friction that would have shown up in code review — published migrations now call only public API, so static analysis is clean without editing vendor-published files.
For engineering (summary):
source_version on published versions and document_source_version on consents (also surfaced in history()). Requires php artisan migrate (or publishing 0001_01_01_000041_record_the_version_its_source_counts first if migrations are published). Hash-compatibility is preserved — source version only participates in the record hash when non-null, so no re-chaining, including for rows written before the upgrade.1.0.0, subsequent publishes are the next minor of the active version, and a changed body under an already-published source version is refused. Treat that refusal as a feature; surface it to editors.pushery/wirekit 2.67.0; below it auto falls back to plain views (as it did below 2.56.0), and legal-consent:doctor reports the floor. 2.67.0 is the oldest release the package's own suite installs, i.e. the proven floor — pin at or above it.php artisan vendor:publish --tag=legal-consent-wirekit --force and diff.composer.json now suggests pushery/sqlens-for-laravel; seven migrations carry #[NoSqlOnDriver]. Attributes are inert without it — no runtime dependency.legal-consent:dispatch-notices.canceled. Docs and the Boost skill are corrected; if your own runbook copied the old "six", it is now wrong.rerender, changes, cache-flush, verify-ledger, each with applicability and tenant behavior — useful for both new engineers and in-editor agents.How can I help you explore Laravel packages today?