Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsenhc committed Jul 9, 2022
1 parent 0b4bbed commit 88c20a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ php artisan vendor:publish --provider="Wilsenhc\RifValidation\RifValidationServi

This validation rule will pass if the RIF value passed in the request is valid.

```php
// in a `FormRequest`
public function rules()
{
return [
'rif' => 'required|rif',
];
}
```
You can also import the `Rif` Rule class and use it instead

```php
// in a `FormRequest`

Expand Down

0 comments on commit 88c20a6

Please sign in to comment.