PHP code example of radosavleovac / laravel-consent-mode
1. Go to this page and download the library: Download radosavleovac/laravel-consent-mode 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/ */
radosavleovac / laravel-consent-mode example snippets
return [
'gtm_id' => env('GTM_ID', 'GTM-XXXXXXX'),
'cookie_name' => env('COOKIE_CONSENT_NAME', 'cookie_consent'),
'cookie_expiration_days' => env('COOKIE_EXPIRATION_DAYS', 365),
'categories' => [
'necessary' => [
'label' => 'necessary', // This key is used in the cookie settings modal
'description' => 'necessary_description', // This key is used in the cookie settings modal
'
sh
php artisan vendor:publish --tag=consent-config
config/consent.php
sh
php artisan vendor:publish --tag=consent-assets
sh
php artisan vendor:publish --tag=cookie-consent-translations
sh
php artisan vendor:publish --tag=cookie-consent-views