Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Legal Consent For Laravel Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

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:

  • Published WireKit views retain the old link and narrow text unless republished with --force, which can overwrite local customizations.
  • Source-version publishing behavior is nuanced: auto-minor progression, first publish as 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.
  • The WireKit floor moves to 2.67.0 for proven views; older versions still fall back to plain views in auto, but the support boundary should be understood.
  • Existing published migrations that call TableLookup are now safe because it is public API, but teams should still avoid editing published migration files.

Key questions:

  • Does the source-version publishing fallback align with the legal/editorial review workflow, or could auto-minor publication bypass expected approvals?
  • Who owns republishing WireKit views, and are local view customizations tracked so --force is safe?
  • Is the WireKit 2.67.0 floor acceptable for the supported Laravel versions in use?
  • Should the team alert on all seven failure-only heartbeat names, including legal-consent:dispatch-notices.canceled, and update runbooks accordingly?
  • Are the four newly documented commands (rerender, changes, cache-flush, verify-ledger) already part of operational procedures?

Integration Approach

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:

  1. Update the package via Composer.
  2. Run 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.
  3. No data backfill is required; existing consent hashes remain valid.
  4. If WireKit views are published, run php artisan vendor:publish --tag=legal-consent-wirekit --force only after confirming local view customizations are expendable or captured elsewhere.
  5. Run legal-consent:doctor to confirm the WireKit version floor and general readiness.
  6. Run 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.

Operational Impact

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:

  • Migration not run: missing source_version / document_source_version columns cause runtime errors when publishing or recording consents.
  • Published views not republished: old legal-text dialog link and narrower text remain.
  • --force view republish: local WireKit customizations are overwritten.
  • Source-version misuse: a changed text under an already-published source version is refused; publishing pipelines must handle that rejection explicitly.
  • Heartbeat misconfiguration: alerting on six instead of seven failure-only names misses legal-consent:dispatch-notices.canceled.
  • WireKit version drift: teams below 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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names