/** * Validate that an attribute contains only alpha-numeric characters. * * @param string $attribute * @param mixed $value * @return bool */ public function validateAlphaNum($attribute, $value) { if (! is_string($value) && ! is_numeric($value)) { return false; } return preg_match('/^[\pL\pM\pN]+$/u', $value) > 0; } ワイ「むむ, \pL\pM\pNの部分,見慣れへんな...」 ワイ「調べてみるか」 ワイ「ふむ...」 ワイ「いやめっちゃ広いやんけ!!!!!!!」 ワイ「なにが