{"action":"created","comment":{"url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/comments/103184099","pull_request_review_id":23961476,"id":103184099,"diff_hunk":"@@ -0,0 +1,50 @@\n+<?php\n+\n+namespace App\\Http\\Requests;\n+\n+use Illuminate\\Foundation\\Http\\FormRequest;\n+use App\\Post;\n+use Storage;\n+use Illuminate\\Support\\Facades\\Config;\n+\n+class FileRequest extends FormRequest\n+{\n+    /**\n+     * Determine if the user is authorized to make this request.\n+     *\n+     * @return bool\n+     */\n+    public function authorize()\n+    {\n+        return true;\n+    }\n+\n+    /**\n+     * Get the validation rules that apply to the request.\n+     *\n+     * @return array\n+     */\n+    public function rules()\n+    {\n+        return [\n+            'image' => Config::get('constants.VALIDATION.image')","path":"app/Http/Requests/FileRequest.php","position":30,"original_position":30,"commit_id":"b5150e7d015b99327d36a7c39a2f0fe53f6175a0","original_commit_id":"b5150e7d015b99327d36a7c39a2f0fe53f6175a0","user":{"login":"Stasiukevich-Ilya","id":20030474,"avatar_url":"https://avatars.githubusercontent.com/u/20030474?v=3","gravatar_id":"","url":"https://api.github.com/users/Stasiukevich-Ilya","html_url":"https://github.com/Stasiukevich-Ilya","followers_url":"https://api.github.com/users/Stasiukevich-Ilya/followers","following_url":"https://api.github.com/users/Stasiukevich-Ilya/following{/other_user}","gists_url":"https://api.github.com/users/Stasiukevich-Ilya/gists{/gist_id}","starred_url":"https://api.github.com/users/Stasiukevich-Ilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stasiukevich-Ilya/subscriptions","organizations_url":"https://api.github.com/users/Stasiukevich-Ilya/orgs","repos_url":"https://api.github.com/users/Stasiukevich-Ilya/repos","events_url":"https://api.github.com/users/Stasiukevich-Ilya/events{/privacy}","received_events_url":"https://api.github.com/users/Stasiukevich-Ilya/received_events","type":"User","site_admin":false},"body":"Это и есть FormRequest, будет удалён, валидация будет вынесена туда, где она необходима.","created_at":"2017-02-27T11:13:06Z","updated_at":"2017-02-27T11:13:06Z","html_url":"https://github.com/Stasiukevich-Ilya/larablog-review/pull/2#discussion_r103184099","pull_request_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/comments/103184099"},"html":{"href":"https://github.com/Stasiukevich-Ilya/larablog-review/pull/2#discussion_r103184099"},"pull_request":{"href":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/2","id":107819782,"html_url":"https://github.com/Stasiukevich-Ilya/larablog-review/pull/2","diff_url":"https://github.com/Stasiukevich-Ilya/larablog-review/pull/2.diff","patch_url":"https://github.com/Stasiukevich-Ilya/larablog-review/pull/2.patch","issue_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/issues/2","number":2,"state":"open","locked":false,"title":"Review","user":{"login":"Stasiukevich-Ilya","id":20030474,"avatar_url":"https://avatars.githubusercontent.com/u/20030474?v=3","gravatar_id":"","url":"https://api.github.com/users/Stasiukevich-Ilya","html_url":"https://github.com/Stasiukevich-Ilya","followers_url":"https://api.github.com/users/Stasiukevich-Ilya/followers","following_url":"https://api.github.com/users/Stasiukevich-Ilya/following{/other_user}","gists_url":"https://api.github.com/users/Stasiukevich-Ilya/gists{/gist_id}","starred_url":"https://api.github.com/users/Stasiukevich-Ilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stasiukevich-Ilya/subscriptions","organizations_url":"https://api.github.com/users/Stasiukevich-Ilya/orgs","repos_url":"https://api.github.com/users/Stasiukevich-Ilya/repos","events_url":"https://api.github.com/users/Stasiukevich-Ilya/events{/privacy}","received_events_url":"https://api.github.com/users/Stasiukevich-Ilya/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-24T12:20:05Z","updated_at":"2017-02-27T11:13:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c753ca75508e42d37921c47a0d66f4561033fd4a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/issues/2/comments","statuses_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/statuses/b5150e7d015b99327d36a7c39a2f0fe53f6175a0","head":{"label":"Stasiukevich-Ilya:review","ref":"review","sha":"b5150e7d015b99327d36a7c39a2f0fe53f6175a0","user":{"login":"Stasiukevich-Ilya","id":20030474,"avatar_url":"https://avatars.githubusercontent.com/u/20030474?v=3","gravatar_id":"","url":"https://api.github.com/users/Stasiukevich-Ilya","html_url":"https://github.com/Stasiukevich-Ilya","followers_url":"https://api.github.com/users/Stasiukevich-Ilya/followers","following_url":"https://api.github.com/users/Stasiukevich-Ilya/following{/other_user}","gists_url":"https://api.github.com/users/Stasiukevich-Ilya/gists{/gist_id}","starred_url":"https://api.github.com/users/Stasiukevich-Ilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stasiukevich-Ilya/subscriptions","organizations_url":"https://api.github.com/users/Stasiukevich-Ilya/orgs","repos_url":"https://api.github.com/users/Stasiukevich-Ilya/repos","events_url":"https://api.github.com/users/Stasiukevich-Ilya/events{/privacy}","received_events_url":"https://api.github.com/users/Stasiukevich-Ilya/received_events","type":"User","site_admin":false},"repo":{"id":82283686,"name":"larablog-review","full_name":"Stasiukevich-Ilya/larablog-review","owner":{"login":"Stasiukevich-Ilya","id":20030474,"avatar_url":"https://avatars.githubusercontent.com/u/20030474?v=3","gravatar_id":"","url":"https://api.github.com/users/Stasiukevich-Ilya","html_url":"https://github.com/Stasiukevich-Ilya","followers_url":"https://api.github.com/users/Stasiukevich-Ilya/followers","following_url":"https://api.github.com/users/Stasiukevich-Ilya/following{/other_user}","gists_url":"https://api.github.com/users/Stasiukevich-Ilya/gists{/gist_id}","starred_url":"https://api.github.com/users/Stasiukevich-Ilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stasiukevich-Ilya/subscriptions","organizations_url":"https://api.github.com/users/Stasiukevich-Ilya/orgs","repos_url":"https://api.github.com/users/Stasiukevich-Ilya/repos","events_url":"https://api.github.com/users/Stasiukevich-Ilya/events{/privacy}","received_events_url":"https://api.github.com/users/Stasiukevich-Ilya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stasiukevich-Ilya/larablog-review","description":null,"fork":false,"url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review","forks_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/forks","keys_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/teams","hooks_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/hooks","issue_events_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/issues/events{/number}","events_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/events","assignees_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/assignees{/user}","branches_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/branches{/branch}","tags_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/tags","blobs_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/statuses/{sha}","languages_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/languages","stargazers_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/stargazers","contributors_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/contributors","subscribers_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/subscribers","subscription_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/subscription","commits_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/contents/{+path}","compare_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/merges","archive_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/downloads","issues_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/issues{/number}","pulls_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls{/number}","milestones_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/milestones{/number}","notifications_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/labels{/name}","releases_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/releases{/id}","deployments_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/deployments","created_at":"2017-02-17T10:02:25Z","updated_at":"2017-02-17T10:02:25Z","pushed_at":"2017-02-24T12:20:05Z","git_url":"git://github.com/Stasiukevich-Ilya/larablog-review.git","ssh_url":"git@github.com:Stasiukevich-Ilya/larablog-review.git","clone_url":"https://github.com/Stasiukevich-Ilya/larablog-review.git","svn_url":"https://github.com/Stasiukevich-Ilya/larablog-review","homepage":null,"size":418,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Stasiukevich-Ilya:master","ref":"master","sha":"43a708f92dacc89adfc82ae09911413f61be8641","user":{"login":"Stasiukevich-Ilya","id":20030474,"avatar_url":"https://avatars.githubusercontent.com/u/20030474?v=3","gravatar_id":"","url":"https://api.github.com/users/Stasiukevich-Ilya","html_url":"https://github.com/Stasiukevich-Ilya","followers_url":"https://api.github.com/users/Stasiukevich-Ilya/followers","following_url":"https://api.github.com/users/Stasiukevich-Ilya/following{/other_user}","gists_url":"https://api.github.com/users/Stasiukevich-Ilya/gists{/gist_id}","starred_url":"https://api.github.com/users/Stasiukevich-Ilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stasiukevich-Ilya/subscriptions","organizations_url":"https://api.github.com/users/Stasiukevich-Ilya/orgs","repos_url":"https://api.github.com/users/Stasiukevich-Ilya/repos","events_url":"https://api.github.com/users/Stasiukevich-Ilya/events{/privacy}","received_events_url":"https://api.github.com/users/Stasiukevich-Ilya/received_events","type":"User","site_admin":false},"repo":{"id":82283686,"name":"larablog-review","full_name":"Stasiukevich-Ilya/larablog-review","owner":{"login":"Stasiukevich-Ilya","id":20030474,"avatar_url":"https://avatars.githubusercontent.com/u/20030474?v=3","gravatar_id":"","url":"https://api.github.com/users/Stasiukevich-Ilya","html_url":"https://github.com/Stasiukevich-Ilya","followers_url":"https://api.github.com/users/Stasiukevich-Ilya/followers","following_url":"https://api.github.com/users/Stasiukevich-Ilya/following{/other_user}","gists_url":"https://api.github.com/users/Stasiukevich-Ilya/gists{/gist_id}","starred_url":"https://api.github.com/users/Stasiukevich-Ilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stasiukevich-Ilya/subscriptions","organizations_url":"https://api.github.com/users/Stasiukevich-Ilya/orgs","repos_url":"https://api.github.com/users/Stasiukevich-Ilya/repos","events_url":"https://api.github.com/users/Stasiukevich-Ilya/events{/privacy}","received_events_url":"https://api.github.com/users/Stasiukevich-Ilya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stasiukevich-Ilya/larablog-review","description":null,"fork":false,"url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review","forks_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/forks","keys_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/teams","hooks_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/hooks","issue_events_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/issues/events{/number}","events_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/events","assignees_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/assignees{/user}","branches_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/branches{/branch}","tags_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/tags","blobs_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/statuses/{sha}","languages_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/languages","stargazers_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/stargazers","contributors_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/contributors","subscribers_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/subscribers","subscription_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/subscription","commits_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/contents/{+path}","compare_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/merges","archive_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/downloads","issues_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/issues{/number}","pulls_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls{/number}","milestones_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/milestones{/number}","notifications_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/labels{/name}","releases_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/releases{/id}","deployments_url":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/deployments","created_at":"2017-02-17T10:02:25Z","updated_at":"2017-02-17T10:02:25Z","pushed_at":"2017-02-24T12:20:05Z","git_url":"git://github.com/Stasiukevich-Ilya/larablog-review.git","ssh_url":"git@github.com:Stasiukevich-Ilya/larablog-review.git","clone_url":"https://github.com/Stasiukevich-Ilya/larablog-review.git","svn_url":"https://github.com/Stasiukevich-Ilya/larablog-review","homepage":null,"size":418,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/2"},"html":{"href":"https://github.com/Stasiukevich-Ilya/larablog-review/pull/2"},"issue":{"href":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/issues/2"},"comments":{"href":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Stasiukevich-Ilya/larablog-review/statuses/b5150e7d015b99327d36a7c39a2f0fe53f6175a0"}}}}
{"actor":{"display_login":"Stasiukevich-Ilya"}}