{"action":"created","issue":{"url":"https://api.github.com/repos/alexgarrett/violin/issues/29","labels_url":"https://api.github.com/repos/alexgarrett/violin/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/alexgarrett/violin/issues/29/comments","events_url":"https://api.github.com/repos/alexgarrett/violin/issues/29/events","html_url":"https://github.com/alexgarrett/violin/issues/29","id":65102660,"number":29,"title":"Change in validate method","user":{"login":"oxyzero","id":4793869,"avatar_url":"https://avatars.githubusercontent.com/u/4793869?v=3","gravatar_id":"","url":"https://api.github.com/users/oxyzero","html_url":"https://github.com/oxyzero","followers_url":"https://api.github.com/users/oxyzero/followers","following_url":"https://api.github.com/users/oxyzero/following{/other_user}","gists_url":"https://api.github.com/users/oxyzero/gists{/gist_id}","starred_url":"https://api.github.com/users/oxyzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxyzero/subscriptions","organizations_url":"https://api.github.com/users/oxyzero/orgs","repos_url":"https://api.github.com/users/oxyzero/repos","events_url":"https://api.github.com/users/oxyzero/events{/privacy}","received_events_url":"https://api.github.com/users/oxyzero/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alexgarrett/violin/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/alexgarrett/violin/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-29T22:27:10Z","updated_at":"2015-04-05T14:51:51Z","closed_at":"2015-04-05T14:51:51Z","body":"I want to discuss and hear opinions on the validate method.\r\n\r\nCurrently, we send data and define rules like this: \r\n```php\r\n$v->validate([\r\n    'username' => 'oxy',\r\n    'age'      => 20,\r\n    'password' => 'secret'\r\n], [\r\n    'username' => 'required',\r\n    'age'      => 'required|int',\r\n    'password' => 'required|alpha'\r\n]);\r\n```\r\n\r\nMy alternative is something like:\r\n```php\r\n$v->validate([\r\n    'username' => [ 'oxy', 'required' ],\r\n    'age'      => [ 20, 'required|int' ],\r\n    'password' => [ 'secret', 'required|alpha' ]\r\n]);\r\n```\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/alexgarrett/violin/issues/comments/89787806","html_url":"https://github.com/alexgarrett/violin/issues/29#issuecomment-89787806","issue_url":"https://api.github.com/repos/alexgarrett/violin/issues/29","id":89787806,"user":{"login":"alexgarrett","id":1692996,"avatar_url":"https://avatars.githubusercontent.com/u/1692996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexgarrett","html_url":"https://github.com/alexgarrett","followers_url":"https://api.github.com/users/alexgarrett/followers","following_url":"https://api.github.com/users/alexgarrett/following{/other_user}","gists_url":"https://api.github.com/users/alexgarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgarrett/subscriptions","organizations_url":"https://api.github.com/users/alexgarrett/orgs","repos_url":"https://api.github.com/users/alexgarrett/repos","events_url":"https://api.github.com/users/alexgarrett/events{/privacy}","received_events_url":"https://api.github.com/users/alexgarrett/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T14:51:49Z","updated_at":"2015-04-05T14:51:49Z","body":"Merged."}}