Description
Blasp is a profanity filter package for Laravel that helps detect and mask profane words in a given sentence.
use Blaspsoft\Blasp\Facades\Blasp; $result = Blasp::check('This is a fucking sentence'); $result->isOffensive(); // true$result->clean(); // "This is a ******* sentence"$result->original(); // "This is a fucking sentence"$result->score(); // 30$result->count(); // 1$result->uniqueWords(); // ['fucking']$result->severity(); // Severity::High
Recent Courses on Laravel Daily
[NEW] Practical Laravel Security: Packages, Secrets, Supply-Chain Attacks
7 lessons
43 min read
Laravel 13 Starter Kit Teams and Customizations
10 lessons
33 min
Roles and Permissions in Laravel 13
14 lessons
57 min