Skip to content

Commit b869a7b

Browse files
committed
test
1 parent 6666cb6 commit b869a7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Rules/Clean.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Closure;
66
use Illuminate\Contracts\Validation\ValidationRule;
7+
use Illuminate\Support\Facades\Config;
78
use Illuminate\Support\Str;
89

910
class Clean implements ValidationRule
@@ -13,7 +14,7 @@ public function validate(string $attribute, mixed $value, Closure $fail): void
1314
$profanities = ['fuck', 'shit'];
1415

1516

16-
dd($value, $profanities);
17+
dd($value, $profanities, Config::get('profanify-en'));
1718

1819
if (Str::contains($value, $profanities)) {
1920
$fail('The :attribute is not clean.');

0 commit comments

Comments
 (0)