Skip to content

Commit ce44c39

Browse files
committed
Update doc for Custom Error Message
1 parent c2bf0c9 commit ce44c39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ php artisan vendor:publish --provider="Arifszn\AdvancedValidation\ServiceProvide
3030
You can specify the error message on the fly when declaring the rules. Simple pass the error message parameter.
3131

3232
```php
33-
use Arifszn\AdvancedValidation\Rules\Base64Image;
33+
use Arifszn\AdvancedValidation\Rules\Username;
3434

3535
public function rules()
3636
{
3737
return [
38-
'avatar' => [new Base64Image('Your custom error message')],
38+
'foo' => [new Username('Your custom error message')],
3939
];
4040
}
4141
```

0 commit comments

Comments
 (0)