You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This rule will validate that a field isn't offensive.
4
-
3
+
This rule will validate that a field isn't offensive. It can be useful to check user supplied data that may be publicly displayed, such as usernames or comments.
use DivineOmega\LaravelOffensiveValidationRule\Offensive;
16
+
17
+
$request->validate([
18
+
'username' => ['required', new Offensive],
19
+
]);
20
+
```
15
21
16
-
###License
17
-
This project is licensed under an Apache 2.0 license which you can find
18
-
[in this LICENSE](https://github.com/laravel-validation-rules/offensive/blob/master/LICENSE).
22
+
## License
23
+
This project is licensed under a GNU Lesser General Public License v3.0 which you can find
24
+
[in this LICENSE](https://github.com/laravel-validation-rules/exposed-password/blob/master/LICENSE).
19
25
20
26
21
-
###Feedback
27
+
## Feedback
22
28
If you have any feedback, comments or suggestions, please feel free to open an
23
29
issue within this repository.
30
+
31
+
## Laravel Validation Rules
32
+
33
+
This package is part of the Laravel Validation Rules collection. If you're after more useful validation rules, head to the [Laravel Validation Rules](https://laravel-validation-rules.github.io/) website.
0 commit comments