PHP code example of godruoyi / laravel-idcard-validator

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

    

godruoyi / laravel-idcard-validator example snippets


Godruoyi\LaravelIdCard\ServiceProvider::class,

Validator::make([
    'idcard' => '110101199801012385',
], [
    'idcard' => '

class UserRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'idcard' => '