A modern, flexible, and production-ready GDPR Cookie Consent Manager package for Laravel 12.
- Customizable Cookie Consent Banner
- Consent Logging
- Admin Panel
- Auto-blocking of Scripts
- Localization
- Easy Integration
- Geo-targeting (Optional)
- Artisan Maintenance Commands
- Require the package:
composer require pola5h/gdpr-cookie-consent-manager
- Publish assets & config:
php artisan vendor:publish --provider="Pola5h\\GdprCookieConsentManager\\Providers\\GdprCookieServiceProvider" - Run migrations:
php artisan migrate
- Add
@gdprCookieConsentBlade directive before</body>in your layout. - Access admin panel at
/gdpr-cookie-admin(configurable). - Manage banner, categories, and logs from the admin panel.
- Edit
config/gdprcookie.phpfor appearance, categories, and settings. - Add or edit translations in
lang/{locale}/messages.php. - Override views by publishing them and editing in
resources/views/vendor/gdprcookie/.
- Ensure you have run migrations and published assets.
- Check config and language files for missing keys.
- For help, contact kzaman3055@gmail.com.
If you find this package useful, please consider supporting its development! See DONATE.md for Binance Pay and crypto donation options.
This project is open source under the MIT License. See the LICENSE file for details.