PHP code example of fuelviews / laravel-cloudflare-cache

1. Go to this page and download the library: Download fuelviews/laravel-cloudflare-cache 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/ */

    

fuelviews / laravel-cloudflare-cache example snippets


use Fuelviews\CloudflareCache\Facades\CloudflareCache;

CloudflareCache::purgeEverything();
bash
php artisan vendor:publish --tag="cloudflare-cache-config"
bash
php artisan cloudflare-cache:clear