Add all files
This commit is contained in:
59
config/cookies-consent.php
Normal file
59
config/cookies-consent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These values determine the package's API route URLs. Both values are
|
||||
| nullable and represent the same concepts as Laravel's routing parameters.
|
||||
|
|
||||
*/
|
||||
|
||||
'url' => [
|
||||
'domain' => null,
|
||||
'prefix' => 'cookiesconsent',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Consent cookie configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| In order to keep track of the user's preferences, this package stores
|
||||
| an anonymized cookie. You do not need to register this cookie in the
|
||||
| package's cookie manager as it is done automatically (under "essentials").
|
||||
|
|
||||
| The duration parameter represents the cookie's lifetime in minutes.
|
||||
|
|
||||
| The domain parameter, when defined, determines the cookie's activity domain.
|
||||
| For multiple sub-domains, prefix your domain with "." (eg: ".mydomain.com").
|
||||
|
|
||||
*/
|
||||
|
||||
'cookie' => [
|
||||
'name' => Str::slug((string) env('APP_NAME', 'laravel'), '_').'_cookiesconsent',
|
||||
'lifetime' => 60 * 24 * 365,
|
||||
'domain' => null,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Legal page configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Most cookie notices display a link to a dedicated page explaining
|
||||
| the extended cookies usage policy. If your application has such a page
|
||||
| you can add its route name here.
|
||||
|
|
||||
*/
|
||||
|
||||
'policy' => null,
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user