PHP code example of liaosp / laravel-validate-ext

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

    

liaosp / laravel-validate-ext example snippets


$data = ['name' => '小廖one'];

$v = \Illuminate\Support\Facades\Validator::make($data, ['name' => 'chsAlpha']);

$this->assertTrue(!$v->fails());