PHP code example of tfd / laravel-well-known-traffic-advice

1. Go to this page and download the library: Download tfd/laravel-well-known-traffic-advice 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/ */

    

tfd / laravel-well-known-traffic-advice example snippets


namespace App\Checks;

use Tfd\LaravelWellKnownTrafficAdvice\Contracts\TrafficAdviceCheck;
use Tfd\LaravelWellKnownTrafficAdvice\DataTransferObjects\TrafficAdviceItem;

class MyCustomCheck implements TrafficAdviceCheck
{
    public function shouldDisallow(): bool
    {
        // 

'checks' => [
    // ...
    App\Checks\MyCustomCheck::class,
],