File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33A partir da versão 3.5.1 nosso modelo de logs é baseado em [ mantenha um changelog] ( https://keepachangelog.com/pt-BR/1.0.0/ ) e o
44nosso versionamento é [ semântico] ( https://semver.org/lang/pt-BR/ ) .
55
6+ ## [ 3.9.0] ( https://github.com/geekcom/validator-docs/compare/3.7.1...3.8.0 )
7+
8+ ## Novidades - Testado com Laravel 10
9+
10+ - Corrigido:
11+ - A mensagem de retorno em caso de erro de validação de DDD.
12+ - Atualizado:
13+ - A documentação foi atualizada.
14+
615## [ 3.8.0] ( https://github.com/geekcom/validator-docs/compare/3.7.1...3.8.0 )
716
817## Novidades
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ $this->validate($request, [
8282]);
8383```
8484
85- * ** titulo_eleitor** - Verifica se um Título de Eleitor é válido;
85+ * ** titulo_eleitor** - Verifica se um Título Eleitoral é válido;
8686
8787``` php
8888$this->validate($request, [
@@ -146,7 +146,7 @@ $this->validate($request, [
146146]);
147147```
148148
149- * ** ddd** - Verifica se um número de DDD é válido;
149+ * ** ddd** - Verifica se um número de [ DDD] ( https://pt.wikipedia.org/wiki/Discagem_direta_%C3%A0_dist%C3%A2ncia ) é válido;
150150
151151``` php
152152$this->validate($request, [
@@ -221,6 +221,7 @@ public function store(Request $request)
221221 'titulo_eleitor' => 'required|titulo_eleitor',
222222 'nis' => 'required|nis',
223223 'cns' => 'required|cns',
224+ 'ddd' => 'required|ddd',
224225 'renavam' => 'required|renavam',
225226 'placa' => 'required|placa',
226227 'certidao' => 'required|certidao',
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ protected function getMessages()
4848 'inscricao_estadual ' => 'Inscrição Estadual ou UF inválidas ' ,
4949 'certidao ' => 'Número da Certidão inválido ' ,
5050 'ddd ' => 'DDD inválido ' ,
51+ 'placa ' => 'Placa inválida ' ,
5152 'formato_cnpj ' => 'Formato inválido para CNPJ ' ,
5253 'formato_cpf ' => 'Formato inválido para CPF ' ,
5354 'formato_cpf_cnpj ' => 'Formato inválido para CPF ou CNPJ ' ,
You can’t perform that action at this time.
0 commit comments