We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c174d8 commit aa9746cCopy full SHA for aa9746c
README.md
@@ -29,6 +29,16 @@ The following code snippet shows an example of how to use the password exposed v
29
use DivineOmega\LaravelPasswordExposedValidationRule\PasswordExposed;
30
31
$request->validate([
32
- 'password' => ['required', new PasswordExposed],
+ 'password' => ['required', new PasswordExposed()],
33
+]);
34
+```
35
+
36
+If you wish, you can also set a custom validation message, as shown below.
37
38
+```php
39
+use DivineOmega\LaravelPasswordExposedValidationRule\PasswordExposed;
40
41
+$request->validate([
42
+ 'password' => ['required', (new PasswordExposed())->setMessage('This password is not secure.')],
43
]);
44
```
0 commit comments