whitecube / laravel-cookie-consent

Register, configure and ask for cookies consent in a EU-compliant way
MIT License
312 stars 37 forks source link

Policy Page #41

Closed Mor9oth closed 4 months ago

Mor9oth commented 5 months ago

Hello! I am a noob, so please don't blame me for the question: How do I get my Policy Page (//mydomain/p/cookies-policy) in this:

'policy' => null,

I tried a lot like but have no idea what to do … Adding an array I guess, but still no idea how to fill that.

raymanP commented 4 months ago

add to routes/web.php a route for your policy, sth. like this for an external page:

// Policy
Route::name('mydomain.')->domain('https://mydomain')->group(function () {
    Route::get('/p/cookies-policy')
        ->name('policy');
});

and set 'policy' => 'mydomain.policy',

Mor9oth commented 4 months ago

Thank you so much!