Class 'Askedio\Laravel5ProfanityFilter\Providers\ProfanityFilterServiceProvider' not found code example
Example 1: laravel dirty words check
composer require askedio/laravel5-profanity-filter
Example 2: 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');