cyrixbiz/cookie

Message for using Cookies

dev-master 2020-10-21 15:09 UTC

This package is auto-updated.

Last update: 2024-04-21 22:57:27 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,