2017 © Pedro Peláez
 

library validador-cpf-laravel

Validation CPF support in your Laravel application version Laravel 5.4

image

gabrielapg/validador-cpf-laravel

Validation CPF support in your Laravel application version Laravel 5.4

  • Wednesday, February 14, 2018
  • by GabrielApG
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

README

Validation CPF for Laravel 5.4

Composer required

composer require "gabrielapg/validador-cpf-laravel @dev"

Register your provider

Insert in file config/app.php, (*1)

ValidationCPF\CpfServiceProvider::class

Publish

php artisan vendor:publish

Change message error

In file config/cpf.php your change message error, (*2)

Example


namespace App\Http\Requests; use App\Http\Requests\Request; class ExampleRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'cpf' => 'cpf' ]; } }

Or if you prefer you can do:

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

References fork

This package is an original fork of:

jailtonsc/validador-cpf-laravel, (*3)

The Versions

14/02 2018

dev-master

9999999-dev

Validation CPF support in your Laravel application version Laravel 5.4

  Sources   Download

MIT

The Requires

 

by Gabriel Ap. G

laravel cpf validationcpf