{"action":"created","issue":{"url":"https://api.github.com/repos/malinink/games/issues/156","repository_url":"https://api.github.com/repos/malinink/games","labels_url":"https://api.github.com/repos/malinink/games/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/malinink/games/issues/156/comments","events_url":"https://api.github.com/repos/malinink/games/issues/156/events","html_url":"https://github.com/malinink/games/pull/156","id":154866518,"number":156,"title":"Feature 129","user":{"login":"artesby","id":6841792,"avatar_url":"https://avatars.githubusercontent.com/u/6841792?v=3","gravatar_id":"","url":"https://api.github.com/users/artesby","html_url":"https://github.com/artesby","followers_url":"https://api.github.com/users/artesby/followers","following_url":"https://api.github.com/users/artesby/following{/other_user}","gists_url":"https://api.github.com/users/artesby/gists{/gist_id}","starred_url":"https://api.github.com/users/artesby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artesby/subscriptions","organizations_url":"https://api.github.com/users/artesby/orgs","repos_url":"https://api.github.com/users/artesby/repos","events_url":"https://api.github.com/users/artesby/events{/privacy}","received_events_url":"https://api.github.com/users/artesby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-14T17:43:05Z","updated_at":"2016-05-15T12:25:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/malinink/games/pulls/156","html_url":"https://github.com/malinink/games/pull/156","diff_url":"https://github.com/malinink/games/pull/156.diff","patch_url":"https://github.com/malinink/games/pull/156.patch"},"body":"Изменения по #129  задаче\r\n"},"comment":{"url":"https://api.github.com/repos/malinink/games/issues/comments/219282872","html_url":"https://github.com/malinink/games/pull/156#issuecomment-219282872","issue_url":"https://api.github.com/repos/malinink/games/issues/156","id":219282872,"user":{"login":"artesby","id":6841792,"avatar_url":"https://avatars.githubusercontent.com/u/6841792?v=3","gravatar_id":"","url":"https://api.github.com/users/artesby","html_url":"https://github.com/artesby","followers_url":"https://api.github.com/users/artesby/followers","following_url":"https://api.github.com/users/artesby/following{/other_user}","gists_url":"https://api.github.com/users/artesby/gists{/gist_id}","starred_url":"https://api.github.com/users/artesby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artesby/subscriptions","organizations_url":"https://api.github.com/users/artesby/orgs","repos_url":"https://api.github.com/users/artesby/repos","events_url":"https://api.github.com/users/artesby/events{/privacy}","received_events_url":"https://api.github.com/users/artesby/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T12:25:18Z","updated_at":"2016-05-15T12:25:18Z","body":"@malinink \r\nв общем\r\n* кажется, эта валидация работает и без мидлвеера\r\n* в доках [написано](https://laravel.com/docs/5.2/validation#quick-displaying-the-validation-errors), что в случае аджакс запросов ошибки валидации должны возвращаться джейсоном на 422. но возвращается вью. я проверял с помощью $request->ajax() понимает ли ларавел нашу функцию как аджакс запрос - похоже, что нет. хедер реквеста - application/json, респонса в случае ошибки - html\r\nне знаю почему"}}