laravel dirty words check

Solutions on MaxInterview for laravel dirty words check by the best coders in the world

showing results for - "laravel dirty words check"
Vincent
13 Jun 2020
1composer require askedio/laravel5-profanity-filter
2
Dante
17 May 2019
1use Askedio\Laravel5ProfanityFilter\ProfanityFilter;
2
3$config = []; // Data from `resources/config/profanity.php`
4$badWordsArray = []; // Data from `resources/lang/[lang]/profanity.php`
5
6$profanityFilter =  new ProfanityFilter($config, $badWordsArray);
7$string = $profanityFilter->filter('something with a bad word');