diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e56f10..259e2dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,15 @@ A 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 nosso versionamento é [semântico](https://semver.org/lang/pt-BR/). +## [3.9.0](https://github.com/geekcom/validator-docs/compare/3.8.0...3.9.0) + +## Novidades - Testado com Laravel 10 + +- Corrigido: + - A mensagem de retorno em caso de erro de validação de DDD. +- Atualizado: + - A documentação foi atualizada. + ## [3.8.0](https://github.com/geekcom/validator-docs/compare/3.7.1...3.8.0) ## Novidades diff --git a/README.md b/README.md index a51de37..c8c0737 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ No arquivo `composer.json`, adicione validator-docs como dependência do seu pro ``` "require": { - "geekcom/validator-docs" : "^3.8" + "geekcom/validator-docs" : "^3.9" }, ``` @@ -82,7 +82,7 @@ $this->validate($request, [ ]); ``` -* **titulo_eleitor** - Verifica se um Título de Eleitor é válido; +* **titulo_eleitor** - Verifica se um Título Eleitoral é válido; ```php $this->validate($request, [ @@ -146,7 +146,7 @@ $this->validate($request, [ ]); ``` -* **ddd** - Verifica se um número de DDD é válido; +* **ddd** - Verifica se um número de [DDD](https://pt.wikipedia.org/wiki/Discagem_direta_%C3%A0_dist%C3%A2ncia) é válido; ```php $this->validate($request, [ @@ -221,6 +221,7 @@ public function store(Request $request) 'titulo_eleitor' => 'required|titulo_eleitor', 'nis' => 'required|nis', 'cns' => 'required|cns', + 'ddd' => 'required|ddd', 'renavam' => 'required|renavam', 'placa' => 'required|placa', 'certidao' => 'required|certidao', diff --git a/composer.lock b/composer.lock index 34cf492..da4b680 100644 --- a/composer.lock +++ b/composer.lock @@ -5453,16 +5453,16 @@ }, { "name": "symfony/error-handler", - "version": "v5.4.17", + "version": "v5.4.19", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "b900446552833ad2f91ca7dd52aa8ffe78f66cb2" + "reference": "438ef3e5e6481244785da3ce8cf8f4e74e7f2822" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/b900446552833ad2f91ca7dd52aa8ffe78f66cb2", - "reference": "b900446552833ad2f91ca7dd52aa8ffe78f66cb2", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/438ef3e5e6481244785da3ce8cf8f4e74e7f2822", + "reference": "438ef3e5e6481244785da3ce8cf8f4e74e7f2822", "shasum": "" }, "require": { @@ -5504,7 +5504,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v5.4.17" + "source": "https://github.com/symfony/error-handler/tree/v5.4.19" }, "funding": [ { @@ -5520,20 +5520,20 @@ "type": "tidelift" } ], - "time": "2022-12-13T09:43:00+00:00" + "time": "2023-01-01T08:32:19+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v6.2.2", + "version": "v6.2.5", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "3ffeb31139b49bf6ef0bc09d1db95eac053388d1" + "reference": "f02d108b5e9fd4a6245aa73a9d2df2ec060c3e68" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/3ffeb31139b49bf6ef0bc09d1db95eac053388d1", - "reference": "3ffeb31139b49bf6ef0bc09d1db95eac053388d1", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f02d108b5e9fd4a6245aa73a9d2df2ec060c3e68", + "reference": "f02d108b5e9fd4a6245aa73a9d2df2ec060c3e68", "shasum": "" }, "require": { @@ -5587,7 +5587,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.2.2" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.2.5" }, "funding": [ { @@ -5603,7 +5603,7 @@ "type": "tidelift" } ], - "time": "2022-12-14T16:11:27+00:00" + "time": "2023-01-01T08:38:09+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -5812,16 +5812,16 @@ }, { "name": "symfony/http-foundation", - "version": "v5.4.17", + "version": "v5.4.20", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "b64a0e2df212d5849e4584cabff0cf09c5d6866a" + "reference": "d0435363362a47c14e9cf50663cb8ffbf491875a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/b64a0e2df212d5849e4584cabff0cf09c5d6866a", - "reference": "b64a0e2df212d5849e4584cabff0cf09c5d6866a", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/d0435363362a47c14e9cf50663cb8ffbf491875a", + "reference": "d0435363362a47c14e9cf50663cb8ffbf491875a", "shasum": "" }, "require": { @@ -5868,7 +5868,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v5.4.17" + "source": "https://github.com/symfony/http-foundation/tree/v5.4.20" }, "funding": [ { @@ -5884,20 +5884,20 @@ "type": "tidelift" } ], - "time": "2022-12-14T08:23:03+00:00" + "time": "2023-01-29T11:11:52+00:00" }, { "name": "symfony/http-kernel", - "version": "v5.4.18", + "version": "v5.4.20", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "5da6f57a13e5d7d77197443cf55697cdf65f1352" + "reference": "aaeec341582d3c160cc9ecfa8b2419ba6c69954e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/5da6f57a13e5d7d77197443cf55697cdf65f1352", - "reference": "5da6f57a13e5d7d77197443cf55697cdf65f1352", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/aaeec341582d3c160cc9ecfa8b2419ba6c69954e", + "reference": "aaeec341582d3c160cc9ecfa8b2419ba6c69954e", "shasum": "" }, "require": { @@ -5980,7 +5980,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v5.4.18" + "source": "https://github.com/symfony/http-kernel/tree/v5.4.20" }, "funding": [ { @@ -5996,7 +5996,7 @@ "type": "tidelift" } ], - "time": "2022-12-29T18:54:08+00:00" + "time": "2023-02-01T08:18:48+00:00" }, { "name": "symfony/mime", @@ -7384,16 +7384,16 @@ }, { "name": "symfony/var-dumper", - "version": "v5.4.17", + "version": "v5.4.19", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "ad74890513d07060255df2575703daf971de92c7" + "reference": "2944bbc23f5f8da2b962fbcbf7c4a6109b2f4b7b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/ad74890513d07060255df2575703daf971de92c7", - "reference": "ad74890513d07060255df2575703daf971de92c7", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/2944bbc23f5f8da2b962fbcbf7c4a6109b2f4b7b", + "reference": "2944bbc23f5f8da2b962fbcbf7c4a6109b2f4b7b", "shasum": "" }, "require": { @@ -7453,7 +7453,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v5.4.17" + "source": "https://github.com/symfony/var-dumper/tree/v5.4.19" }, "funding": [ { @@ -7469,7 +7469,7 @@ "type": "tidelift" } ], - "time": "2022-12-22T10:31:03+00:00" + "time": "2023-01-16T10:52:33+00:00" }, { "name": "symfony/yaml", @@ -8076,5 +8076,5 @@ "php": "^7.3|^8.0" }, "platform-dev": [], - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.3.0" } diff --git a/src/validator-docs/ValidatorProvider.php b/src/validator-docs/ValidatorProvider.php index 4304e3c..98ba816 100644 --- a/src/validator-docs/ValidatorProvider.php +++ b/src/validator-docs/ValidatorProvider.php @@ -48,6 +48,7 @@ protected function getMessages() 'inscricao_estadual' => 'Inscrição Estadual ou UF inválidas', 'certidao' => 'Número da Certidão inválido', 'ddd' => 'DDD inválido', + 'placa' => 'Placa inválida', 'formato_cnpj' => 'Formato inválido para CNPJ', 'formato_cpf' => 'Formato inválido para CPF', 'formato_cpf_cnpj' => 'Formato inválido para CPF ou CNPJ',