PHP code example of monaz / vt-laravel-rules
1. Go to this page and download the library: Download monaz/vt-laravel-rules 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/ */
monaz / vt-laravel-rules example snippets
use Monaz\LaravelVirusTotal\Rules\File;
use Monaz\LaravelVirusTotal\Rules\Url;
use Monaz\LaravelVirusTotal\Rules\Ip;
use Monaz\LaravelVirusTotal\Rules\Domain;
// somewhere in your validators
public function rules()
{
return [
'my_file' => ['file', new File()],
'my_url' => ['url', new Url()],
'my_ip' => ['ip', new Ip()],
'my_domain' => ['string', new domain()]
];
}
php artisan vendor:publish --tag=vt-laravel