We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wrote an Artisan command that checks a large list of models for profanity. The general gist is:
public function checkUserNamesForProfanity() { $users = User::all(); foreach ($users as $user) { $name = $user->name; if (!empty($name)) { echo "Checking name of user ID: " . $user->id . PHP_EOL; $blasp = Blasp::check($name); if ($blasp->hasProfanity()) { $profanities = implode(', ', $blasp->getUniqueProfanitiesFound()); echo "Profanity found in user ID: " . $user->id . PHP_EOL; echo "Name: " . $name . PHP_EOL; echo "Profanity matched: " . $profanities . PHP_EOL; } } } }
The output of "Profanity matched:" will continue the grow as long as the command is running, adding onto profanity found in previous matches.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I wrote an Artisan command that checks a large list of models for profanity. The general gist is:
The output of "Profanity matched:" will continue the grow as long as the command is running, adding onto profanity found in previous matches.
The text was updated successfully, but these errors were encountered: