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.
Architecture fit: The release is additive and stays within the package’s existing Laravel patterns: migrations, publishable views, artisan commands, and optional static-analysis metadata. The new sourceVersion field fits the document/version/consent model without changing SemVer semantics or the consent hash chain. The pushery/sqlens-for-laravel suggestion is developer-tooling only and does not alter runtime architecture.
Integration feasibility: High. The migration is additive (source_version, document_source_version), and the hash-chain compatibility note is explicit: existing consents keep their hashes because the source version is folded in only when present. The WireKit view changes are optional unless the application has published views. The published-migration fix resolves a real PHPStan pain point by promoting TableLookup to public API.
Technical risk: Low overall, with a few targeted risks:
--force, which can overwrite local customizations.1.0.0, and refusal of changed text under an already-published source version. This is governance logic that teams must understand before enabling it.2.67.0 for proven views; older versions still fall back to plain views in auto, but the support boundary should be understood.TableLookup are now safe because it is public API, but teams should still avoid editing published migration files.Key questions:
--force is safe?2.67.0 floor acceptable for the supported Laravel versions in use?legal-consent:dispatch-notices.canceled, and update runbooks accordingly?rerender, changes, cache-flush, verify-ledger) already part of operational procedures?Stack fit: Fits standard Laravel deployments using Composer, migrations, Blade/WireKit views, and artisan commands. The SQLens suggestion is optional and relevant only to teams running static analysis over migrations. No new runtime service or infrastructure dependency is introduced.
Migration path:
php artisan migrate, or, if migrations are published, publish and run 0001_01_01_000041_record_the_version_its_source_counts before the standard migration step.php artisan vendor:publish --tag=legal-consent-wirekit --force only after confirming local view customizations are expendable or captured elsewhere.legal-consent:doctor to confirm the WireKit version floor and general readiness.legal-consent:verify-ledger after migration to validate chain integrity.Compatibility: Additive schema changes are backward compatible. The consent hash behavior is explicitly backward compatible. The main compatibility decision is frontend: applications on WireKit versions below 2.67.0 will continue to get plain views in auto mode, which may be acceptable but should be intentional.
Sequencing: Treat the database migration as the gating step. View republishing and documentation/runbook updates can follow independently. Update alerting configuration and Boost-loaded agent guidance after the package update, since the release corrects the failure-only heartbeat count from six to seven and adds missing command references.
Maintenance: Low. The new columns are additive and require no ongoing maintenance. Promoting TableLookup to public API reduces PHPStan noise for teams that analyze published migrations. The package’s migration attributes for SQLens are inert without SQLens installed.
Support: The documentation fixes are operationally meaningful: the heartbeat guidance now correctly names seven failure-only signals, and the Boost skill now exposes four previously omitted commands. Support teams should update runbooks and alert routing to match. Without that update, a failed notice dispatch path may go unalerted.
Scaling: Negligible impact. The new fields store scalar version identifiers alongside existing version records and consent history. No additional joins, queues, or external calls are introduced by this release.
Failure modes:
source_version / document_source_version columns cause runtime errors when publishing or recording consents.--force view republish: local WireKit customizations are overwritten.legal-consent:dispatch-notices.canceled.2.67.0 may see plain views in auto and should confirm that is acceptable.Ramp-up: Small. Engineers need a short briefing on source-version semantics and the view-publishing workflow. Operators need the corrected heartbeat list and the newly documented commands. No new infrastructure or deep domain training is required.
How can I help you explore Laravel packages today?