PHP code example of milwad / laravel-validate

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

    

milwad / laravel-validate example snippets

 >= 8.0

use Milwad\LaravelValidate\Rules\ValidPhoneNumber;

return [
    'phone' => ['

use Milwad\LaravelValidate\Rules\ValidPattern;

return [
    'numbers' => ['

use Milwad\LaravelValidate\Rules\ValidIban;

return [
    'iban' => ['

use Milwad\LaravelValidate\Rules\ValidIban;
use Milwad\LaravelValidate\Utils\Country;

return [
    'iban' => ['
shell
php artisan vendor:publish --tag="validate-lang-{$lang}"
shell
php artisan vendor:publish --tag="validate-lang-en"