PHP code example of geekcom / validator-docs

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

    

geekcom / validator-docs example snippets


$this->validate($request, [
    'cpf' => '

$this->validate($request, [
    'cnpj' => '

$this->validate($request, [
    'cnh' => '

$this->validate($request, [
    'passaporte' => '

$this->validate($request, [
    'titulo_eleitor' => '

$this->validate($request, [
    'cpf_cnpj' => '

$this->validate($request, [
    'inscricao_estadual' => '

$this->validate($request, [
    'nis' => '

$this->validate($request, [
    'cns' => '

$this->validate($request, [
    'certidao' => '

$this->validate($request, [
    'renavam' => '

$this->validate($request, [
    'placa' => '

$this->validate($request, [
    'ddd' => '

$this->validate($request, [
    'formato_cnpj' => '

$this->validate($request, [
    'formato_cpf' => '

$this->validate($request, [
    'formato_cpf_cnpj' => '

$this->validate($request, [
    'formato_nis' => '

$this->validate($request, [
    'formato_certidao' => '

$this->validate($request, [
    'cpf_or_cnpj' => 'formato_cpf_cnpj|cpf_cnpj',
]);

public function store(Request $request)
{
    $data = $request->all();

    $this->validate($request, [
        'cpf' => ',
        'nis' => '',
        'certidao' => '