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');