PHP code example of vlados / laravel-blade-crawler-detect

1. Go to this page and download the library: Download vlados/laravel-blade-crawler-detect 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/ */

    

vlados / laravel-blade-crawler-detect example snippets

blade
{{-- Cookie / consent banners --}}
@user
    <x-cookie-consent />
@enduser

{{-- Chat widgets, support bubbles --}}
@user
    <script src="https://widget.intercom.io/widget/{{ config('services.intercom.id') }}"></script>
@enduser

{{-- Heavy analytics / tag managers --}}
@user
    <script async src="https://www.googletagmanager.com/gtag/js?id=GA_ID"></script>
@enduser

{{-- Lazy-mounted Vue / Livewire / Alpine widgets --}}
@user
    <livewire:product-recommendations :product="$product" />
@enduser