{"action":"created","issue":{"url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/174","repository_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation","labels_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/174/comments","events_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/174/events","html_url":"https://github.com/proengsoft/laravel-jsvalidation/issues/174","id":170364723,"number":174,"title":"How to validate array inputs?","user":{"login":"emmanuelLS","id":5345023,"avatar_url":"https://avatars.githubusercontent.com/u/5345023?v=3","gravatar_id":"","url":"https://api.github.com/users/emmanuelLS","html_url":"https://github.com/emmanuelLS","followers_url":"https://api.github.com/users/emmanuelLS/followers","following_url":"https://api.github.com/users/emmanuelLS/following{/other_user}","gists_url":"https://api.github.com/users/emmanuelLS/gists{/gist_id}","starred_url":"https://api.github.com/users/emmanuelLS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmanuelLS/subscriptions","organizations_url":"https://api.github.com/users/emmanuelLS/orgs","repos_url":"https://api.github.com/users/emmanuelLS/repos","events_url":"https://api.github.com/users/emmanuelLS/events{/privacy}","received_events_url":"https://api.github.com/users/emmanuelLS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-10T08:50:33Z","updated_at":"2016-08-21T09:39:12Z","closed_at":null,"body":"Hi Im trying to validate an array inputs like this.\r\n\r\n```\r\n{!!Form::open()!!}\r\n   <input type=\"text\" name=\"value1[]\">\r\n   <input type=\"text\" name=\"value1[]\">\r\n  {!! Form::submit('submit') !!}\r\n{!! Form::close()!!}\r\n\r\n```\r\n\r\nThis is my controller\r\n```\r\n $rules = [\r\n                   \r\n                      \r\n                       'value1[]' => 'required|array',\r\n                \r\n                ];\r\n$data = $request->all()\r\n\r\n $validator = Validator::make($data, $rules);\r\n\r\n                if ($validator->fails())\r\n                {\r\n                    return redirect()->back()->withErrors($validator->errors());\r\n                }\r\n\r\n```\r\n\r\nUnfortunately, it doesn't seem to work. Any work around for this? \r\n\r\nThanks,\r\n"},"comment":{"url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/comments/241247943","html_url":"https://github.com/proengsoft/laravel-jsvalidation/issues/174#issuecomment-241247943","issue_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/174","id":241247943,"user":{"login":"Lescazel","id":20169424,"avatar_url":"https://avatars.githubusercontent.com/u/20169424?v=3","gravatar_id":"","url":"https://api.github.com/users/Lescazel","html_url":"https://github.com/Lescazel","followers_url":"https://api.github.com/users/Lescazel/followers","following_url":"https://api.github.com/users/Lescazel/following{/other_user}","gists_url":"https://api.github.com/users/Lescazel/gists{/gist_id}","starred_url":"https://api.github.com/users/Lescazel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lescazel/subscriptions","organizations_url":"https://api.github.com/users/Lescazel/orgs","repos_url":"https://api.github.com/users/Lescazel/repos","events_url":"https://api.github.com/users/Lescazel/events{/privacy}","received_events_url":"https://api.github.com/users/Lescazel/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T09:39:12Z","updated_at":"2016-08-21T09:39:12Z","body":"@sakalauskas it doesn't work for me to omit the []. With them it works on clientside, but on serverside I get displayed the error.\r\n\r\nDoes anyone else found a solution to use the wildcards in JSValidation? \r\n\r\n"}}
{"actor":{"display_login":"Lescazel"}}