PHP code example of w3designweb / laravel-cookie-consent

1. Go to this page and download the library: Download w3designweb/laravel-cookie-consent library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

w3designweb / laravel-cookie-consent example snippets


W3designweb\LaravelCookieConsent\LaravelCookieConsentServiceProvider::class,

$app->register(W3designweb\LaravelCookieConsent\LaravelCookieConsentServiceProvider::class);

COOKIE_CONSENT_ENABLED=true
COOKIE_CONSENT_NAME=your_cookie_consent_name

'web' => [
    ...
    W3designweb\LaravelCookieConsent\Http\Middleware\LaravelCookieConsent::class,
    ...
],

php artisan vendor:publish --provider="W3designweb\LaravelCookieConsent\LaravelCookieConsentServiceProvider"