ramir1 / cookie-consent
Banner for cookie consent fo Laravel
1.2.2
2024-05-27 07:36 UTC
Requires
- laravel/framework: ^10|^v11
README
##Install
composer require ramir1/cookie-consent
##Add in layout
<x-cookie_consent::banner/>
php artisan vendor:publish --provider="Ramir1\CookieConsent\CookieConsentServiceProvider"
or
yarn add js-cookie
<x-cookie_consent::banner :style=0 :script=0 />
To app.js
import '../../vendor/ramir1/cookie-consent/resources/js/cookie-consent';
to app.css/app.scss
@import "../../vendor/ramir1/cookie-consent/resources/css/cookie-consent.css"
Setting GTM (google tag manager)
https://www.youtube.com/watch?v=yZjGzfWDc0Y