Answers for "laravel dirty words check"

PHP
0

laravel dirty words check

composer require askedio/laravel5-profanity-filter
Posted by: Guest on November-12-2020
0

laravel dirty words check

use Askedio\Laravel5ProfanityFilter\ProfanityFilter;

$config = []; // Data from `resources/config/profanity.php`
$badWordsArray = []; // Data from `resources/lang/[lang]/profanity.php`

$profanityFilter =  new ProfanityFilter($config, $badWordsArray);
$string = $profanityFilter->filter('something with a bad word');
Posted by: Guest on November-12-2020

Browse Popular Code Answers by Language