Skip to content

laravel-validation-rules/offensive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Laravel Validator Rules - Offensive

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.

Installation

composer require laravel-validation-rules/offensive

Usage

use DivineOmega\LaravelOffensiveValidationRule\Offensive;

$request->validate([
    '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.

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.

About

This rule will validate that a field isn't offensive.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy