This Filament package provides seamless integration of cookie consent functionality into your Filament admin panels, ensuring compliance with privacy regulations like GDPR and CCPA. It automatically injects cookie consent banners and preferences into all Filament panels without requiring manual template modifications.
You can install the package via composer:
composer require jeffersongoncalves/filament-cookie-consent
This package automatically integrates with all your Filament panels. Once installed, cookie consent functionality will be automatically injected into your Filament admin interface without any additional configuration.
The package uses Filament's render hooks to automatically add:
<head>
section<body>
sectionYou can publish and customize the configuration file:
php artisan vendor:publish --tag=cookie-consent-config
This will publish the configuration file to config/cookie-consent.php
where you can customize:
Example configuration:
return [ 'content' => [ 'message' => 'This website uses cookies and other tracking technologies...', 'dismiss' => 'Accept', 'link' => 'Privacy Policy', 'href' => '/privacy-policy', ], 'palette' => [ 'popup' => [ 'background' => '#696969', 'text' => '#FFFFFF', ], 'button' => [ 'background' => '#FFAB00', 'text' => '#FFFFFF', ], ], 'position' => 'bottom-left',];
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:
<head>
section<body>
sectionNo manual template inclusion is required when using this Filament package.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.