PHP code example of marcogermani87 / filament-cookie-consent
1. Go to this page and download the library: Download marcogermani87/filament-cookie-consent library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
marcogermani87 / filament-cookie-consent example snippets
return [
// 'start', 'end'
'position' => 'start',
'consent_button' => [
'size' => 'sm',
'color' => 'warning',
],
'privacy_policy_button' => [
'enabled' => true,
'href' => '/privacy-policy',
'size' => 'sm',
'color' => 'gray',
'target' => '_blank',
],
];
->plugin(\MarcoGermani87\FilamentCookieConsent\FilamentCookieConsent::make())
bash
php artisan vendor:publish --tag="filament-cookie-consent-config"
bash
php artisan vendor:publish --tag="filament-cookie-consent-views"