Skip to content

Commit 88c20a6

Browse files
committed
Update readme
1 parent 0b4bbed commit 88c20a6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ php artisan vendor:publish --provider="Wilsenhc\RifValidation\RifValidationServi
3434

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

37+
```php
38+
// in a `FormRequest`
39+
public function rules()
40+
{
41+
return [
42+
'rif' => 'required|rif',
43+
];
44+
}
45+
```
46+
You can also import the `Rif` Rule class and use it instead
47+
3748
```php
3849
// in a `FormRequest`
3950

0 commit comments

Comments
 (0)