{"action":"opened","issue":{"url":"https://api.github.com/repos/the-control-group/voyager/issues/437","repository_url":"https://api.github.com/repos/the-control-group/voyager","labels_url":"https://api.github.com/repos/the-control-group/voyager/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/the-control-group/voyager/issues/437/comments","events_url":"https://api.github.com/repos/the-control-group/voyager/issues/437/events","html_url":"https://github.com/the-control-group/voyager/issues/437","id":197375946,"number":437,"title":"How to validate 'unique' using JSON in optional field","user":{"login":"raoasifraza11","id":18229291,"avatar_url":"https://avatars.githubusercontent.com/u/18229291?v=3","gravatar_id":"","url":"https://api.github.com/users/raoasifraza11","html_url":"https://github.com/raoasifraza11","followers_url":"https://api.github.com/users/raoasifraza11/followers","following_url":"https://api.github.com/users/raoasifraza11/following{/other_user}","gists_url":"https://api.github.com/users/raoasifraza11/gists{/gist_id}","starred_url":"https://api.github.com/users/raoasifraza11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raoasifraza11/subscriptions","organizations_url":"https://api.github.com/users/raoasifraza11/orgs","repos_url":"https://api.github.com/users/raoasifraza11/repos","events_url":"https://api.github.com/users/raoasifraza11/events{/privacy}","received_events_url":"https://api.github.com/users/raoasifraza11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-23T14:13:05Z","updated_at":"2016-12-23T14:13:05Z","closed_at":null,"body":"- Laravel Version: 5.3.28\r\n- Voyager Version: 0.10.5\r\n- PHP Version: 7.0.9\r\n- Database Driver & Version: 7.0.9\r\n\r\n### Description:\r\nHow to validate unique name such as validate require or maximum.\r\n`{\r\n    \"validation\": {\r\n        \"rule\": \"required| max:100\"\r\n    }\r\n}`\r\n\r\n### Steps To Reproduce:\r\nWhen I use as per Laravel Validation rules is used but got error \r\n`{\r\n    \"validation\": {\r\n        \"rule\": \"required|unique:name|max:100\"\r\n    }\r\n}`\r\n\r\nError is this:\r\n`SQLSTATE[42S02]: Base table or view not found: 1146 Table 'country' doesn't exist (SQL: select count(*) as aggregate from `country` where `country` = Pakistan)`\r\n"}}
{"actor":{"display_login":"raoasifraza11"}}