Often a constraint message needs to be "customized" in a particular context because what appears to be one constraint is indeed two different constraints applied in different contexts.
一条约束消息需要在特定上下文中“自定义”通常是因为,看似是一个约束的内容,实际上是两个适用于不同上下文的不同约束。
For example, when a constraint is violated, you might want to provide a link from the informative message to the field that is primarily responsible for the violation.
例如,当违反条件时,可能希望在信息性消息中提供违反条件的字段的链接。
The Message Key is used for display purposes when the constraint fails.
Message Key用来显示约束失败的情况。
应用推荐