{"action":"created","issue":{"url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/78","labels_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/78/comments","events_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/78/events","html_url":"https://github.com/proengsoft/laravel-jsvalidation/issues/78","id":106038475,"number":78,"title":"Posible error on remote validation of unique email on update","user":{"login":"drjoju","id":461705,"avatar_url":"https://avatars.githubusercontent.com/u/461705?v=3","gravatar_id":"","url":"https://api.github.com/users/drjoju","html_url":"https://github.com/drjoju","followers_url":"https://api.github.com/users/drjoju/followers","following_url":"https://api.github.com/users/drjoju/following{/other_user}","gists_url":"https://api.github.com/users/drjoju/gists{/gist_id}","starred_url":"https://api.github.com/users/drjoju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drjoju/subscriptions","organizations_url":"https://api.github.com/users/drjoju/orgs","repos_url":"https://api.github.com/users/drjoju/repos","events_url":"https://api.github.com/users/drjoju/events{/privacy}","received_events_url":"https://api.github.com/users/drjoju/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-11T15:51:45Z","updated_at":"2015-09-12T14:26:09Z","closed_at":null,"body":"Hi Albert,\r\n\r\nI trying to do this validation on a FormRequest on a update method of a controller.\r\n\r\n'contacto.email' => 'email|unique:users,email,id,'.$this->segment(2),\r\n\r\nThe url is something like\r\nhttp://proyect.dev/clientes/401/edit\r\n\r\nI try too \r\n'contacto.email' => 'email|unique:users,email,id,'.$this->get('id'),\r\nBecause the method is\r\n public function update(ClientesRequest $request, $id) \r\n\r\nI get an error \r\nQueryException in Connection.php line 636:\r\nSQLSTATE[42S22]: Column not found: 1054 Unknown column '401' in 'where clause' (SQL: select count(*) as aggregate from `gs_users` where `email` = aaaa.xxxxxx@yahoo.com and `401` <> id)\r\n\r\nAs you see, the query is extrange. I thik is a problem of Laravel. \r\n\r\nWhat do you think?\r\n\r\nBest regards\r\n"},"comment":{"url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/comments/139774933","html_url":"https://github.com/proengsoft/laravel-jsvalidation/issues/78#issuecomment-139774933","issue_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/78","id":139774933,"user":{"login":"torrentalle","id":1963459,"avatar_url":"https://avatars.githubusercontent.com/u/1963459?v=3","gravatar_id":"","url":"https://api.github.com/users/torrentalle","html_url":"https://github.com/torrentalle","followers_url":"https://api.github.com/users/torrentalle/followers","following_url":"https://api.github.com/users/torrentalle/following{/other_user}","gists_url":"https://api.github.com/users/torrentalle/gists{/gist_id}","starred_url":"https://api.github.com/users/torrentalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torrentalle/subscriptions","organizations_url":"https://api.github.com/users/torrentalle/orgs","repos_url":"https://api.github.com/users/torrentalle/repos","events_url":"https://api.github.com/users/torrentalle/events{/privacy}","received_events_url":"https://api.github.com/users/torrentalle/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T14:26:09Z","updated_at":"2015-09-12T14:26:09Z","body":"Just another think. You should use *dev-master* version, because *v1.1.4* version has a bug with array named fields.\r\n"}}