We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'username|用户名' => [ 'rule'=>'required|alpha_num|unique:hyperf_admin.member', 'props' => [ 'size' => 'small', 'maxlength' => 20, ], ],
Unknown column '35_to_ignore' in 'where clause' 35 是 正在编辑的id
The text was updated successfully, but these errors were encountered:
这里的原因是控制器底层在 unique 这种 约束条件下自动拼接了 {pk}_to_ignore, 具体代码在 code, 如果不带字段的话, 就会拼接成 unique:hyperf_admin.member,{pk}_to_ingore 从而导致错误
unique
{pk}_to_ignore
unique:hyperf_admin.member,{pk}_to_ingore
Sorry, something went wrong.
No branches or pull requests
'username|用户名' => [
'rule'=>'required|alpha_num|unique:hyperf_admin.member',
'props' => [
'size' => 'small',
'maxlength' => 20,
],
],
Unknown column '35_to_ignore' in 'where clause' 35 是 正在编辑的id
The text was updated successfully, but these errors were encountered: