Skip to content
Québec Studio

Laravel package

Cookie Consent Kit

Cookie consent, done right: no third-party cookie before the visitor agrees, and pages that stay cached. Built for Quebec’s Law 25.

Laravel 11–13
v1.1.0
  • main · Laravel 11–13

Source

1.1.0

Latest version

Added

  • How to record consents, in docs/recording-consents.md. The package keeps no register — where decisions are stored, for how long and who may read them are decisions an application makes for itself — but the core now carries what a register is built from: the fingerprint of what the banner was showing, the reconciliation of a reported answer, and the script that reports it. The page walks through the table, the endpoint, and the CSRF exemption sendBeacon needs.

Changed

  • Requires quebecstudio-mods/consent-kit-core 1.1, for those primitives.

1.0.0

  • Cookie consent banner for Laravel 11 to 13, in QuebecStudioMods\ConsentKit\Laravel, on quebecstudio-mods/consent-kit-core.
  • InjectConsent middleware on the web group: bootstrap, stylesheet, banner and script added to HTML responses.
  • Publishable config, assets, wording files and templates.
  • CookieConsent facade: banner, cookie table and markers, YouTube facade.
  • YouTube posters served by the application.
  • displayMode: full width, a floating box, or a bottom corner.
  • reopenPosition: the reopen tab on the left or the right.

An extension that doesn’t exist yet?

If Craft CMS, Statamic or Laravel doesn’t do what you need yet, we can build it for you.

Let’s talk

We use cookies

This site uses cookies that are required for it to work. With your consent, we also use cookies to measure traffic. You can change your mind at any time. Privacy policy

Your cookie preferences

Always on

Required for the site to work and for form security. These cannot be turned off.

Necessary
Cookie Set by Purpose Retention
CraftSessionId This site Keeps your browsing session. Session
CRAFT_CSRF_TOKEN This site Protects forms against cross-site request forgery. Session
cookie_consent This site Remembers your cookie choices. 6 months

Help us understand how the site is used so we can improve it. Measured with Matomo.

Statistics
Cookie Set by Purpose Retention
_pk_id.* This site Recognizes the browser from one visit to the next, without identifying you. 13 months
_pk_ses.* This site Groups the pages viewed during a single visit. 30 minutes