PHP code example of jeffersongoncalves / filament-cookie-consent
1. Go to this page and download the library: Download jeffersongoncalves/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/ */
jeffersongoncalves / filament-cookie-consent example snippets
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',
];
bash
php artisan vendor:publish --tag=cookie-consent-config