This package will make it easier when you want to replace certain words with a *** sign
You can install the package via composer:
composer require almazary/laravel-word-censor
publish the config file with:
php artisan vendor:publish --tag="laravel-word-censor-config"
Via facade:
use Almazary\LaravelWordCensor\LaravelWordCensorFacade;
$a = LaravelWordCensorFacade::replace('bigger boob');
// result: bigger ***
Via middleware:
protected $middleware = [
...,
...,
\Almazary\LaravelWordCensor\Middleware\Replace::class,
];
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.