PHP code example of vsilva472 / laravel-cpf

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

    

vsilva472 / laravel-cpf example snippets


composer 

 Vsilva472\LaravelCPF\LaravelCPFServiceProvider::class,
 

 php artisan vendor:publish --tag=lcpf_lang

$request->validate([
    'field_name' => ['cpf'],
]);

/**
 * Get the validation rules that apply to the request.
 *
 * @return array
 */
public function rules()
{
    return [
        'title' => '