{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/10766","labels_url":"https://api.github.com/repos/laravel/framework/issues/10766/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/10766/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/10766/events","html_url":"https://github.com/laravel/framework/pull/10766","id":114319704,"number":10766,"title":"[5.1] Validation rule: required_unless","user":{"login":"CupOfTea696","id":7327050,"avatar_url":"https://avatars.githubusercontent.com/u/7327050?v=3","gravatar_id":"","url":"https://api.github.com/users/CupOfTea696","html_url":"https://github.com/CupOfTea696","followers_url":"https://api.github.com/users/CupOfTea696/followers","following_url":"https://api.github.com/users/CupOfTea696/following{/other_user}","gists_url":"https://api.github.com/users/CupOfTea696/gists{/gist_id}","starred_url":"https://api.github.com/users/CupOfTea696/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CupOfTea696/subscriptions","organizations_url":"https://api.github.com/users/CupOfTea696/orgs","repos_url":"https://api.github.com/users/CupOfTea696/repos","events_url":"https://api.github.com/users/CupOfTea696/events{/privacy}","received_events_url":"https://api.github.com/users/CupOfTea696/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-30T17:41:44Z","updated_at":"2015-11-01T16:26:24Z","closed_at":"2015-10-31T18:36:49Z","pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/10766","html_url":"https://github.com/laravel/framework/pull/10766","diff_url":"https://github.com/laravel/framework/pull/10766.diff","patch_url":"https://github.com/laravel/framework/pull/10766.patch"},"body":"Since that Laravel already comes with the `required_if` validation rule out of the box, I thought it would make sense to add a `required_unless` rule too. It would do the exact opposite, and require a field unless another field is set to value.\r\n\r\nAdditional changes in laravel/laravel needed if this is accepted."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/152841729","html_url":"https://github.com/laravel/framework/pull/10766#issuecomment-152841729","issue_url":"https://api.github.com/repos/laravel/framework/issues/10766","id":152841729,"user":{"login":"CupOfTea696","id":7327050,"avatar_url":"https://avatars.githubusercontent.com/u/7327050?v=3","gravatar_id":"","url":"https://api.github.com/users/CupOfTea696","html_url":"https://github.com/CupOfTea696","followers_url":"https://api.github.com/users/CupOfTea696/followers","following_url":"https://api.github.com/users/CupOfTea696/following{/other_user}","gists_url":"https://api.github.com/users/CupOfTea696/gists{/gist_id}","starred_url":"https://api.github.com/users/CupOfTea696/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CupOfTea696/subscriptions","organizations_url":"https://api.github.com/users/CupOfTea696/orgs","repos_url":"https://api.github.com/users/CupOfTea696/repos","events_url":"https://api.github.com/users/CupOfTea696/events{/privacy}","received_events_url":"https://api.github.com/users/CupOfTea696/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T16:26:24Z","updated_at":"2015-11-01T16:26:24Z","body":"@taylorotwell shall I create a PR in laravel/laravel for the language file?"}}