cyrixbiz / cookie
Message for using Cookies
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/cyrixbiz/cookie
Requires
- php: >= 7.1
 
This package is auto-updated.
Last update: 2025-10-22 02:12:21 UTC
README
A Cookie Law Info Script with Laravel
- Use this Cookie _ Law _ Script on your own risk. Ask a lawyer for more informations.
 
Install the ACL
- 
Composer
composer require cyrixbiz/cookie dev-master - 
Edit config\app and add the following lines
'providers' => [ // ... cyrixbiz\cookie\CookieServiceProvider::class, // ... ];
 - 
Edit App\Http\Kernel and add the following lines
protected $middleware = [ // \cyrixbiz\cookie\Http\Middleware\Cookie::class,
 
Config - File
- 
Enable / Disable the Cookie Info
'enable' => true | false
 - 
Choose your mechanism - without or with Javascript
'mechainism' => Redirect | Ajax
 - 
Cookie Name
'name' => 'cyrixbiz_set_law_cookie',
 - 
View _ Layout
'layout' => 'CookieView::layout.message',
 - 
life_time for the Cookie
'life_time' => 60,
 - 
Tag for the View - On the Fly Creating
tag => '</ body>'
 - 
Fallback
fallback => 'https://google.de' | Fallback - Disallow Cookies
 - 
Extern jQuery
//You can choose between extern script and manually installed jQuery'extern_jQuery' => true,
 - 
Extern bootstrap
//You can choose between extern script and manually installed bootstrap'extern_bootstrap' => true,