PHP code example of robertboes / laravel-cloudflare-proxies
1. Go to this page and download the library: Download robertboes/laravel-cloudflare-proxies 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/ */
robertboes / laravel-cloudflare-proxies example snippets
// tests/Pest.php
pest()->extend(Tests\TestCase::class)
->use(RobertBoes\CloudflareProxies\Testing\InteractsWithCloudflareProxies::class)
->in('Feature');
it('resolves the client behind Cloudflare')->expectCloudflareProxiesToWork();
// routes/console.php
Schedule::command('cloudflare-proxies:refresh')->daily();
bash
php artisan vendor:publish --tag=cloudflare-proxies-config
bash
php artisan cloudflare-proxies:check