Skip to content

Commit 0e8c51d

Browse files
authored
Update README.md
1 parent 19408f2 commit 0e8c51d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,9 @@ org
3838
Então, podemos usar um simples teste onde dizemos que o campo CPF será obrigatório e usamos a biblioteca para validar:
3939

4040
```php
41-
$validator = Validator::make(
42-
['cpf' => '813.766.431-97'],
43-
['cpf' => 'required|cpf']
44-
);
45-
46-
dd($validator->fails());
41+
$this->validate($request, [
42+
'cpf' => 'required|cpf',
43+
]);
4744

4845
```
4946

0 commit comments

Comments
 (0)