No hint path defined for [cookieConsent]. #165
-
I have seen this issue a lot on this repo, and have tried lots of solutions but none of them have worked. When I go to my site, I get the error: From my composer.json file, I am running versions:
Any idea how to fix this? I am using the v3 syntax in my view: EDIT |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
You can opt out adding in your blade view file using Kernel.php // app/Http/Kernel.php protected $middleware = [
...
\Spatie\CookieConsent\CookieConsentMiddleware::class,
]; Also, the dialog won't show if cookies already accepted, so you have to clear browser caches. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem with version 3.1.2, using PHP 8.0.13 and Laravel 8.35.1 |
Beta Was this translation helpful? Give feedback.
-
try : @include('cookieConsent::index') it's work for me in composer.json "spatie/laravel-cookie-consent": "^2.12", |
Beta Was this translation helpful? Give feedback.
-
No hint path defined for [cookie-consent] |
Beta Was this translation helpful? Give feedback.
You can opt out adding in your blade view file using Kernel.php
So instead of adding
@include('cookie-consent::index')
in your blade, you can do this.// app/Http/Kernel.php
Also, the dialog won't show if cookies already accepted, so you have to clear browser caches.