FlowConsent
ServicesBlogExtensionSolutionsPricingTry FlowConsent
FlowConsent

FlowConsent is a GDPR-compliant cookie consent management platform.

Product

  • Services
  • Extension
  • Extension support
  • Solutions
  • Pricing
  • FlowConsent App

Legal

  • Privacy Policy
  • Terms of Service
  • Legal notice

© 2026 FlowConsent by BeBranded. All rights reserved.

FrancaisDeutschEspanol

Does your website use third-party services? Get GDPR compliant in minutes.

Try FlowConsent
  1. Home
  2. Services
  3. Consent Management
  4. Spatie Laravel Cookie Consent
S

Spatie Laravel Cookie Consent

Essential

Related services

2

2B Advice

2B Advice is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. 2B Advice integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, 2B Advice helps organizations maintain robust websites that meet user expectations and technical requirements.

Essential
A

Acconsento.click

Acconsento.click is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. Acconsento.click integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, Acconsento.click helps organizations maintain robust websites that meet user expectations and.

Essential
A

AdFixus

AdFixus is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. AdFixus supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, AdFixus ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.

Essential
A

AdOpt

AdOpt is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. AdOpt supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, AdOpt ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.

Essential
A

AdRoll CMP System

AdRoll CMP System is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. AdRoll CMP System supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, AdRoll CMP System ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.

Essential

Aklamio

Aklamio is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. Aklamio integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, Aklamio helps organizations maintain robust websites that meet user expectations and technical requirements.

Essential
Get compliant — Try FlowConsent free

Free plan · 10-min setup

What does Spatie Laravel Cookie Consent do?

Spatie Laravel Cookie Consent is a lightweight open source PHP package by Belgian agency Spatie that displays a basic cookie notice on Laravel applications. It writes a single first party cookie (laravel_cookie_consent) to remember the dismissal and does not call any third party service. Used alone, it is more an information banner than a full consent management platform: blocking trackers and giving granular consent must be implemented separately.

What is Spatie Laravel Cookie Consent?

Spatie Laravel Cookie Consent is a small composer package developed by Belgian agency Spatie. It adds a simple cookie notice to a Laravel application: when the visitor lands on the site, a Blade rendered dialog tells them that the site uses cookies, and provides a button to dismiss the notice. It is widely used by Laravel developers in Europe as a lightweight first step toward compliance.

Cookies and identifiers

The package sets a single first party cookie named laravel_cookie_consent on the application domain. It contains a value of 1 indicating that the visitor has dismissed the banner. The cookie has no tracking purpose and no personal data leaves your Laravel application.

GDPR and ePrivacy implications

The laravel_cookie_consent cookie qualifies as strictly necessary for the consent exemption of Article 5(3) ePrivacy because it remembers the user''s expressed choice. The package itself does not load any third party tracker, so it does not by itself create privacy obligations beyond proper transparency.

Get GDPR compliant in 10 minutes

Free plan available · No credit card required

Try FlowConsent free

What it does not do

The package is informational. It does not block analytics, advertising or social plugins, it does not provide categorised consent (necessary, statistics, marketing), and it does not generate proof of consent compliant with EDPB guidelines. Used alone with Google Analytics or Meta Pixel loaded directly in the layout, your Laravel app remains non compliant.

Combining it with proper consent gating

To reach actual GDPR/ePrivacy compliance, combine Spatie Laravel Cookie Consent with a real CMP (Klaro!, CookieYes, Cookiebot or a custom Vue/React banner) that gates third party scripts on a per category consent. Alternatively, replace the package with a fully featured open source CMP that natively integrates with Laravel''s Blade templates.

Implementing it correctly

Treat the package as a UI helper for the cookie notice. Customise the message to clearly describe what cookies are set and link to a separate cookie policy. Combine it with conditional Blade includes that load analytics or ads only after a real consent is captured. Document the laravel_cookie_consent cookie in your privacy policy as strictly necessary.

GDPR consent category

Essential

Websites using Spatie Laravel Cookie Consent must obtain user consent under GDPR regulations.

Legal basisThe single cookie set is strictly necessary to remember the visitor's choice and falls under the consent exemption of Article 5(3) ePrivacy. No personal data leaves the controller's infrastructure.
Risk levellow
Applicable regulationsGDPR, ePrivacy Directive (cookie strictly necessary exemption)

DPIA considerations

A DPIA is not required for the package itself because no personal data is processed beyond a single first party cookie. The DPIA scope shifts to the trackers your Laravel app loads (analytics, ads, social plugins), which the package does not block on its own.

Sample consent text

This site uses Spatie Laravel Cookie Consent to display a cookie notice. A first party cookie (laravel_cookie_consent) is stored on your device to remember that you have dismissed the banner. No data is sent to any third party.

Technical details

Tracking methodServer side Laravel package (spatie/laravel-cookie-consent) plus a small front end Blade dialog. The package writes a single first party cookie (laravel_cookie_consent) to remember whether the visitor has dismissed the banner, and renders the dialog HTML server side.
Server locationSelf hosted by the controller (no third party endpoint is contacted).
Cookieless tracking availableYes

Third-party domains contacted

github.com/spatie/laravel-cookie-consentpackagist.org

Cookies placed

NameTypeDurationPurpose
laravel_cookie_consentfirst_party1 yearStores the visitor's acknowledgement of the cookie notice so the dialog is not displayed again. Strictly necessary cookie, exempt from consent.

Spatie Laravel Cookie Consent is an essential service, but transparency matters. Manage all your consent with FlowConsent.

Get started freeScan your site

Frequently asked questions

Which cookies does Spatie Laravel Cookie Consent set?

It sets a single first party cookie named laravel_cookie_consent on the application domain to remember that the visitor has dismissed the cookie notice.

Does it require consent?

No, the laravel_cookie_consent cookie is strictly necessary to remember the visitor's choice and falls under the consent exemption of Article 5(3) ePrivacy. The package itself does not load any third party tracker.

What is the legal basis?

Storage of the cookie is exempted from consent because it is strictly necessary. Tracking obligations come from the other scripts of your Laravel app, which the package does not block.

Are data transferred outside the EU?

No, the package is self contained inside your Laravel application. It does not call any external API and does not generate transfers.

Do I need a DPIA?

No DPIA is required for the package itself. A DPIA may still be needed for the trackers your Laravel app loads (analytics, ads, social plugins) which are not blocked by Spatie Laravel Cookie Consent.

How do I make my Laravel app actually compliant?

Combine the package with conditional Blade includes or with a real CMP (Klaro!, CookieYes, Cookiebot) that gates third party scripts on a per category consent. Document the cookies in a dedicated cookie policy.

Are there alternatives?

For a real CMP integrated with Laravel, consider Klaro!, Cookiebot, CookieYes, or building a custom Vue/Livewire banner with consent state propagated to the back end.

How do I describe it in my cookie policy?

List the laravel_cookie_consent cookie as strictly necessary, with its 1 year duration and its sole purpose: remembering that the visitor dismissed the notice. No third party processor is involved.