item("spam_word")))); if ($spamWord) { for ($i = 0; $i < count($spamWord); $i++) { $str = trim($spamWord[$i]); if ($value) { $pos = stripos($value, $str); if ($pos !== false) { return false; } } } } return true; } /** * Get the validation error message. * * @return string */ public function message() { return ':attribute 에 금지 단어가 포함되었습니다.'; } }