There is no license information available for the latest version (v1.1.0) of this package.

Metapackage for

v1.1.0 2018-05-10 12:10 UTC

This package is auto-updated.

Last update: 2024-03-16 21:54:07 UTC


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.


composer require laravel-validation-rules/offensive


use DivineOmega\LaravelOffensiveValidationRule\Offensive;

    'username' => ['required', new Offensive],

You are also able to specifiy a custom offensive word blacklist and whitelist. If you wish to do this, check the additional usage examples.


This project is licensed under a GNU Lesser General Public License v3.0 which you can find in this LICENSE.


If you have any feedback, comments or suggestions, please feel free to open an issue within this repository.

Laravel Validation Rules

This package is part of the Laravel Validation Rules collection. If you're after more useful validation rules, head to the Laravel Validation Rules website.