Cookie Consent by Jefferson Gonçalves
CommunityA simple and elegant way to implement cookie consent on your website, ensuring compliance with privacy regulations like GDPR and CCPA.
Author:
Jefferson Gonçalves
Package health
Automated checks of this plugin's Composer package
15 checks
- Passed: GitHub Actions pinned to SHA
- Skipped: GitLab CI includes pinned to SHA
- Passed: Open security advisories
- Passed: Dependabot PR responsiveness — No open Dependabot PRs.
- Skipped: Renovate MR responsiveness
- Passed: Dependabot or Renovate configured
- Passed: Dependency update cooldown configured
- Passed: Provides a security policy
- Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
- Passed: Commit and release recency — Active: last commit 1 days ago; last release 2 days ago.
-
Passed:
composer.lock not committed by library
—
composer.lockis absent from the released dist archive. - Passed: Dist archive is lean
-
Passed:
Current Laravel version supported
—
Package dependencies resolve together with current Laravel
13.0. -
Passed:
Current PHP version supported
—
Constraint
^8.2|^8.3supports current PHP8.5. - Skipped: Current Symfony version supported
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
Documentation
- Compatibility
- Features
- Requirements
- Installation
- Plugin Registration
- Settings Page
- How it works
- Testing
- Changelog
- Contributing
- Security Vulnerabilities
- Credits
- License

This Filament package provides a simple and elegant way to implement cookie consent on your website, ensuring compliance with privacy regulations like GDPR and CCPA. It includes a Settings Page to manage all cookie consent options directly from your Filament panel.
#Compatibility
#Features
- Automatic Integration: No need to manually add blade templates - works out of the box with Filament
- Settings Page: Manage all cookie consent settings directly from your Filament panel
- Database-driven Settings: Uses
spatie/laravel-settingsfor persistent, database-backed configuration - GDPR & CCPA Compliant: Ensures your application meets privacy regulation requirements
- Highly Configurable: Customize colors, position, theme, and content via the admin panel
- Responsive Design: Works perfectly on desktop and mobile devices
- Multi-language Support: Easily translatable for international applications
#Navigation group
Put the settings page in one of your panel's own navigation groups (a string or a closure):
CookieConsentPlugin::make()
->navigationGroup(fn (): string => __('admin.navigation.settings')),
#Requirements
- PHP 8.2 or higher
- Laravel 11.0 or higher
- Filament 5.0
#Installation
You can install the package via composer:
composer require jeffersongoncalves/filament-cookie-consent:^3.2
If you haven't already, publish the Spatie Laravel Settings migration:
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
Then publish and run the cookie consent settings migration:
php artisan vendor:publish --tag=cookie-consent-settings-migrations
php artisan migrate
#Plugin Registration
Register the plugin in your Filament Panel Provider:
use JeffersonGoncalves\Filament\CookieConsent\CookieConsentPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
CookieConsentPlugin::make(),
]);
}
#Settings Page
Once registered, the plugin adds a Cookie Consent Settings page to your Filament panel under the "Settings" navigation group. From there you can configure:
- Assets: CSS and JavaScript URLs for the cookie consent library
- Content: Header, message, button texts, privacy policy URL, link target, and cookie policy text
- Popup Colors: Background, text, and link colors
- Button Colors: Background, border, and text colors
- Highlight Colors: Background, border, and text colors
- Layout: Banner position and theme
#Disabling the Settings Page
If you only want the automatic cookie consent integration without the settings page:
CookieConsentPlugin::make()
->settingsPage(false),
#How it works
This package extends the jeffersongoncalves/laravel-cookie-consent package specifically for Filament panels. It automatically registers render hooks that inject the cookie consent templates into your Filament panel pages:
- Cookie consent scripts are automatically added to the
<head>section - Cookie consent banner is automatically added to the end of the
<body>section
No manual template inclusion is required when using this Filament package.
#Screenshots
Screenshots using this package in the admin panel provider.
| Top Left | Top Right |
|---|---|
![]() |
![]() |
| Bottom Left | Bottom Right |
![]() |
![]() |
#Testing
composer test
#Changelog
Please see CHANGELOG for more information on what has changed recently.
#Contributing
Please see CONTRIBUTING for details.
#Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
I'm a Full Stack PHP Developer from Assis, SP, Brazil with over 18 years of hands-on experience building robust platforms, managing server infrastructures, and crafting scalable solutions for businesses of all sizes.
My passion lives in the open source world — I actively maintain 20+ Filament plugins and a growing collection of Laravel packages used by thousands of developers worldwide. I believe great software should be accessible to everyone.
From the same author
Scanner Guard
Filament UI for jeffersongoncalves/laravel-scanner-guard: list, filter and unban vulnerability-scanner IPs directly from your admin panel. This plugin ships a read-only Resource over the scanner_guard_bans table, an active/expired filter, and unban / bulk unban actions.
Author:
Jefferson Gonçalves
Short URL
A complete Filament v5 admin layer for jeffersongoncalves/laravel-short-url — the headless core package that owns the models, migrations, redirect pipeline, tracking and every business rule. This package duplicates none of that: it's the presentation layer (Resources, Pages and Filament components) built on top of the core's Facade and contracts.
Author:
Jefferson Gonçalves
TeamKit v5
Teamkit is a robust starter kit, designed to accelerate the development of modern web applications with a ready-to-use multi-panel structure.
Author:
Jefferson Gonçalves
Ban
Ban and unban any Eloquent model directly from your Filament panel. This package wraps cybercog/laravel-ban and ships ready-to-use actions, bulk actions, an icon column and a status filter for your Filament resources and tables. Inspired by cybercog/laravel-nova-ban.
Author:
Jefferson Gonçalves
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Noir Theme
A theme that gives panels a focused, refined look with near-black surfaces, crisp actions, and restrained color.
Filament
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese



