regex, $value) > 0; } /** * Get the validation error message. * * @return string */ public function message() { return __('validation.regex', ['attribute' => __('permission name')]); } /** * @return string */ public function __toString() { return sprintf("regex:%s", $this->regex); } }