{"action":"opened","issue":{"url":"https://api.github.com/repos/nodes-php/backend/issues/94","repository_url":"https://api.github.com/repos/nodes-php/backend","labels_url":"https://api.github.com/repos/nodes-php/backend/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/nodes-php/backend/issues/94/comments","events_url":"https://api.github.com/repos/nodes-php/backend/issues/94/events","html_url":"https://github.com/nodes-php/backend/issues/94","id":182790178,"number":94,"title":"Allow native Laravel validation","user":{"login":"rtrzebinski","id":3026410,"avatar_url":"https://avatars.githubusercontent.com/u/3026410?v=3","gravatar_id":"","url":"https://api.github.com/users/rtrzebinski","html_url":"https://github.com/rtrzebinski","followers_url":"https://api.github.com/users/rtrzebinski/followers","following_url":"https://api.github.com/users/rtrzebinski/following{/other_user}","gists_url":"https://api.github.com/users/rtrzebinski/gists{/gist_id}","starred_url":"https://api.github.com/users/rtrzebinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtrzebinski/subscriptions","organizations_url":"https://api.github.com/users/rtrzebinski/orgs","repos_url":"https://api.github.com/users/rtrzebinski/repos","events_url":"https://api.github.com/users/rtrzebinski/events{/privacy}","received_events_url":"https://api.github.com/users/rtrzebinski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-13T13:31:06Z","updated_at":"2016-10-13T13:31:06Z","closed_at":null,"body":"https://laravel.com/docs/5.3/validation#validation-quickstart\r\n\r\nCurrently we can't use the following syntax in controllers:\r\n\r\n```\r\n$this->validate($request, [\r\n    'title' => 'required|unique:posts|max:255',\r\n    'author.name' => 'required',\r\n    'author.description' => 'required',\r\n]);\r\n```\r\n\r\nProblem is that Laravel uses 'errors' session variable to store validation errors, while Nodes uses 'error'. Because of this Nodes backend views can not see errors. Fix is to change view(s) to use 'errors' instead of 'error'. This is breaking change so major release number should be increased."}}
{"actor":{"display_login":"rtrzebinski"}}