format($format) === $value) { return true; } } return false; } /** * Get the validation error message. * * @return string */ public function message() { return ':attribute の形式は "年/月/日 時:分" にしてください。'; } }