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

Metapackage for https://github.com/DivineOmega/laravel-offensive-validation-rule

Maintainers

Package info

github.com/laravel-validation-rules/offensive

Type:metapackage

pkg:composer/laravel-validation-rules/offensive

Transparency log

Statistics

Installs: 10

Dependents: 0

Suggesters: 0

Stars: 4

Open Issues: 0

v2.0.0 2026-07-18 09:05 UTC

This package is auto-updated.

Last update: 2026-07-18 09:06:20 UTC


README

This metapackage installs the maintained rule that validates that a field is not offensive. It can be useful for user-supplied data that may be displayed publicly, such as usernames or comments.

Installation

composer require laravel-validation-rules/offensive

Usage

use JordJD\LaravelOffensiveValidationRule\Offensive;

$request->validate([
    'username' => ['required', new Offensive],
]);

You can also provide custom offensive-word blacklists and whitelists. See the maintained package documentation for the current extension points.

Version 2 of this metapackage uses the current jord-jd/laravel-offensive-validation-rule package and namespace. Applications that still use the legacy DivineOmega namespace should remain on version 1 until they are ready to update the import.

License

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

Feedback

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.