Skip to content
New issue

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

Validating array unique:table triggers database column not found error #12947

Closed
njansenNL opened this issue Mar 31, 2016 · 1 comment
Closed

Comments

@njansenNL
Copy link

Hi,

When we validate an array with the unique:table rule like:

$rules = [
    '*.code' => 'required|string|unique:devices',
];

Laravel 5.2.27 triggers a database error that the specified column is not found:

Column not found: 1054 Unknown column '0.column_name' in 'where clause' (SQL: select count(*) as aggregate from `table_name` where `0`.`column_name` = value)"

I know that there are other issues #11927 around this problem, and it was fixed in my installation but now it seems to be back.

Any suggestions are welcome!

@themsaid
Copy link
Member

themsaid commented Apr 2, 2016

@njansenNL this was fixed in 5.2.28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants