数据表和字段复数错误

修改理由:
详细描述:
官方文档:learnku.com/docs/laravel/9.x/valid...
If the column option is not specified, the field name will be used. So, in this case, the rule will validate that the states database table contains a record with a state column value matching the request's state attribute value.
相关信息:
- 类型:文档文章
- 文章: 表单验证
- 文档: 《Laravel 9 中文文档(9.x)》
此投稿由 MArtian 在 2年前 合并。
标题修改:
内容修改:
Old | New | Differences |
---|---|---|
1152 | 1152 | |
1153 | 1153 | 'state' => 'exists:states' |
1154 | 1154 | |
1155 | 如果未指定 `column` 选项,则将使用字段名称。因此,在这种情况下,该规则将验证 `states` 数据库表是否包含一条记录,该记录的 `state | |
1155 | 如果未指定 `column` 选项,则将使用字段名称。因此,在这种情况下,该规则将验证 `states` 数据库表是否包含一条记录,该记录的 `state` 列的值与请求的 `state` 属性值匹配。 | |
1156 | 1156 | |
1157 | 1157 | <a name="specifying-a-custom-column-name"></a> |
1158 | 1158 | #### 指定自定义列名 |