{"action":"created","comment":{"url":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/comments/237055443","pull_request_review_id":179260727,"id":237055443,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzA1NTQ0Mw==","diff_hunk":"@@ -0,0 +1,35 @@\n+<?php\n+\n+namespace App\\Http\\Requests\\User;\n+\n+use Illuminate\\Foundation\\Http\\FormRequest;\n+use Illuminate\\Support\\Facades\\Auth;\n+\n+class UpdateUser extends FormRequest\n+{\n+\t/**\n+\t * Determine if the user is authorized to make this request.\n+\t *\n+\t * @return bool\n+\t */\n+\tpublic function authorize()\n+\t{\n+\t\treturn Auth::user()->isAdmin();\n+\t}\n+\n+\t/**\n+\t * Get the validation rules that apply to the request.\n+\t *\n+\t * @return array\n+\t */\n+\tpublic function rules()\n+\t{\n+\t\treturn [\n+\t\t\t'first_name' => 'string',","path":"app/Http/Requests/User/UpdateUser.php","position":28,"original_position":28,"commit_id":"c9df62f92c0aecf164e5beffdd17657e7225b32e","original_commit_id":"c9df62f92c0aecf164e5beffdd17657e7225b32e","user":{"login":"bognix","id":3473327,"node_id":"MDQ6VXNlcjM0NzMzMjc=","avatar_url":"https://avatars0.githubusercontent.com/u/3473327?v=4","gravatar_id":"","url":"https://api.github.com/users/bognix","html_url":"https://github.com/bognix","followers_url":"https://api.github.com/users/bognix/followers","following_url":"https://api.github.com/users/bognix/following{/other_user}","gists_url":"https://api.github.com/users/bognix/gists{/gist_id}","starred_url":"https://api.github.com/users/bognix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bognix/subscriptions","organizations_url":"https://api.github.com/users/bognix/orgs","repos_url":"https://api.github.com/users/bognix/repos","events_url":"https://api.github.com/users/bognix/events{/privacy}","received_events_url":"https://api.github.com/users/bognix/received_events","type":"User","site_admin":false},"body":"smarter validation here please.\r\n\r\nfrist_name is required\r\nlast_name is required\r\nemail is required\r\npassword is required\r\n\r\nemail has to be unique - but can be the same if this is the same user.","created_at":"2018-11-28T12:06:34Z","updated_at":"2018-11-28T12:06:34Z","html_url":"https://github.com/bethinkpl/wnl-platform/pull/1132#discussion_r237055443","pull_request_url":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/1132","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/comments/237055443"},"html":{"href":"https://github.com/bethinkpl/wnl-platform/pull/1132#discussion_r237055443"},"pull_request":{"href":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/1132"}}},"pull_request":{"url":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/1132","id":232006737,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMDA2NzM3","html_url":"https://github.com/bethinkpl/wnl-platform/pull/1132","diff_url":"https://github.com/bethinkpl/wnl-platform/pull/1132.diff","patch_url":"https://github.com/bethinkpl/wnl-platform/pull/1132.patch","issue_url":"https://api.github.com/repos/bethinkpl/wnl-platform/issues/1132","number":1132,"state":"open","locked":false,"title":"PLAT-51 | create account","user":{"login":"bognix","id":3473327,"node_id":"MDQ6VXNlcjM0NzMzMjc=","avatar_url":"https://avatars0.githubusercontent.com/u/3473327?v=4","gravatar_id":"","url":"https://api.github.com/users/bognix","html_url":"https://github.com/bognix","followers_url":"https://api.github.com/users/bognix/followers","following_url":"https://api.github.com/users/bognix/following{/other_user}","gists_url":"https://api.github.com/users/bognix/gists{/gist_id}","starred_url":"https://api.github.com/users/bognix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bognix/subscriptions","organizations_url":"https://api.github.com/users/bognix/orgs","repos_url":"https://api.github.com/users/bognix/repos","events_url":"https://api.github.com/users/bognix/events{/privacy}","received_events_url":"https://api.github.com/users/bognix/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-19T15:09:55Z","updated_at":"2018-11-28T12:06:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49e9fd268ab073f655c45b6c76083a343459a919","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/1132/commits","review_comments_url":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/1132/comments","review_comment_url":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bethinkpl/wnl-platform/issues/1132/comments","statuses_url":"https://api.github.com/repos/bethinkpl/wnl-platform/statuses/c9df62f92c0aecf164e5beffdd17657e7225b32e","head":{"label":"bethinkpl:PLAT-51-create-account","ref":"PLAT-51-create-account","sha":"c9df62f92c0aecf164e5beffdd17657e7225b32e","user":{"login":"bethinkpl","id":24373413,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0MzczNDEz","avatar_url":"https://avatars2.githubusercontent.com/u/24373413?v=4","gravatar_id":"","url":"https://api.github.com/users/bethinkpl","html_url":"https://github.com/bethinkpl","followers_url":"https://api.github.com/users/bethinkpl/followers","following_url":"https://api.github.com/users/bethinkpl/following{/other_user}","gists_url":"https://api.github.com/users/bethinkpl/gists{/gist_id}","starred_url":"https://api.github.com/users/bethinkpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethinkpl/subscriptions","organizations_url":"https://api.github.com/users/bethinkpl/orgs","repos_url":"https://api.github.com/users/bethinkpl/repos","events_url":"https://api.github.com/users/bethinkpl/events{/privacy}","received_events_url":"https://api.github.com/users/bethinkpl/received_events","type":"Organization","site_admin":false},"repo":{"id":75552769,"node_id":"MDEwOlJlcG9zaXRvcnk3NTU1Mjc2OQ==","name":"wnl-platform","full_name":"bethinkpl/wnl-platform","private":false,"owner":{"login":"bethinkpl","id":24373413,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0MzczNDEz","avatar_url":"https://avatars2.githubusercontent.com/u/24373413?v=4","gravatar_id":"","url":"https://api.github.com/users/bethinkpl","html_url":"https://github.com/bethinkpl","followers_url":"https://api.github.com/users/bethinkpl/followers","following_url":"https://api.github.com/users/bethinkpl/following{/other_user}","gists_url":"https://api.github.com/users/bethinkpl/gists{/gist_id}","starred_url":"https://api.github.com/users/bethinkpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethinkpl/subscriptions","organizations_url":"https://api.github.com/users/bethinkpl/orgs","repos_url":"https://api.github.com/users/bethinkpl/repos","events_url":"https://api.github.com/users/bethinkpl/events{/privacy}","received_events_url":"https://api.github.com/users/bethinkpl/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bethinkpl/wnl-platform","description":"The main app for delivering medical e-learning courses. Based on Laravel.","fork":false,"url":"https://api.github.com/repos/bethinkpl/wnl-platform","forks_url":"https://api.github.com/repos/bethinkpl/wnl-platform/forks","keys_url":"https://api.github.com/repos/bethinkpl/wnl-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bethinkpl/wnl-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bethinkpl/wnl-platform/teams","hooks_url":"https://api.github.com/repos/bethinkpl/wnl-platform/hooks","issue_events_url":"https://api.github.com/repos/bethinkpl/wnl-platform/issues/events{/number}","events_url":"https://api.github.com/repos/bethinkpl/wnl-platform/events","assignees_url":"https://api.github.com/repos/bethinkpl/wnl-platform/assignees{/user}","branches_url":"https://api.github.com/repos/bethinkpl/wnl-platform/branches{/branch}","tags_url":"https://api.github.com/repos/bethinkpl/wnl-platform/tags","blobs_url":"https://api.github.com/repos/bethinkpl/wnl-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bethinkpl/wnl-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bethinkpl/wnl-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/bethinkpl/wnl-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bethinkpl/wnl-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/bethinkpl/wnl-platform/languages","stargazers_url":"https://api.github.com/repos/bethinkpl/wnl-platform/stargazers","contributors_url":"https://api.github.com/repos/bethinkpl/wnl-platform/contributors","subscribers_url":"https://api.github.com/repos/bethinkpl/wnl-platform/subscribers","subscription_url":"https://api.github.com/repos/bethinkpl/wnl-platform/subscription","commits_url":"https://api.github.com/repos/bethinkpl/wnl-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/bethinkpl/wnl-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/bethinkpl/wnl-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/bethinkpl/wnl-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/bethinkpl/wnl-platform/contents/{+path}","compare_url":"https://api.github.com/repos/bethinkpl/wnl-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bethinkpl/wnl-platform/merges","archive_url":"https://api.github.com/repos/bethinkpl/wnl-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bethinkpl/wnl-platform/downloads","issues_url":"https://api.github.com/repos/bethinkpl/wnl-platform/issues{/number}","pulls_url":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/bethinkpl/wnl-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/bethinkpl/wnl-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bethinkpl/wnl-platform/labels{/name}","releases_url":"https://api.github.com/repos/bethinkpl/wnl-platform/releases{/id}","deployments_url":"https://api.github.com/repos/bethinkpl/wnl-platform/deployments","created_at":"2016-12-04T17:29:57Z","updated_at":"2018-11-27T12:09:04Z","pushed_at":"2018-11-28T11:59:05Z","git_url":"git://github.com/bethinkpl/wnl-platform.git","ssh_url":"git@github.com:bethinkpl/wnl-platform.git","clone_url":"https://github.com/bethinkpl/wnl-platform.git","svn_url":"https://github.com/bethinkpl/wnl-platform","homepage":null,"size":10197,"stargazers_count":11,"watchers_count":11,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":3,"open_issues":5,"watchers":11,"default_branch":"master"}},"base":{"label":"bethinkpl:master","ref":"master","sha":"b990e2a79026c122323f60b1f7e035a1370e334b","user":{"login":"bethinkpl","id":24373413,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0MzczNDEz","avatar_url":"https://avatars2.githubusercontent.com/u/24373413?v=4","gravatar_id":"","url":"https://api.github.com/users/bethinkpl","html_url":"https://github.com/bethinkpl","followers_url":"https://api.github.com/users/bethinkpl/followers","following_url":"https://api.github.com/users/bethinkpl/following{/other_user}","gists_url":"https://api.github.com/users/bethinkpl/gists{/gist_id}","starred_url":"https://api.github.com/users/bethinkpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethinkpl/subscriptions","organizations_url":"https://api.github.com/users/bethinkpl/orgs","repos_url":"https://api.github.com/users/bethinkpl/repos","events_url":"https://api.github.com/users/bethinkpl/events{/privacy}","received_events_url":"https://api.github.com/users/bethinkpl/received_events","type":"Organization","site_admin":false},"repo":{"id":75552769,"node_id":"MDEwOlJlcG9zaXRvcnk3NTU1Mjc2OQ==","name":"wnl-platform","full_name":"bethinkpl/wnl-platform","private":false,"owner":{"login":"bethinkpl","id":24373413,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0MzczNDEz","avatar_url":"https://avatars2.githubusercontent.com/u/24373413?v=4","gravatar_id":"","url":"https://api.github.com/users/bethinkpl","html_url":"https://github.com/bethinkpl","followers_url":"https://api.github.com/users/bethinkpl/followers","following_url":"https://api.github.com/users/bethinkpl/following{/other_user}","gists_url":"https://api.github.com/users/bethinkpl/gists{/gist_id}","starred_url":"https://api.github.com/users/bethinkpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethinkpl/subscriptions","organizations_url":"https://api.github.com/users/bethinkpl/orgs","repos_url":"https://api.github.com/users/bethinkpl/repos","events_url":"https://api.github.com/users/bethinkpl/events{/privacy}","received_events_url":"https://api.github.com/users/bethinkpl/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bethinkpl/wnl-platform","description":"The main app for delivering medical e-learning courses. Based on Laravel.","fork":false,"url":"https://api.github.com/repos/bethinkpl/wnl-platform","forks_url":"https://api.github.com/repos/bethinkpl/wnl-platform/forks","keys_url":"https://api.github.com/repos/bethinkpl/wnl-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bethinkpl/wnl-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bethinkpl/wnl-platform/teams","hooks_url":"https://api.github.com/repos/bethinkpl/wnl-platform/hooks","issue_events_url":"https://api.github.com/repos/bethinkpl/wnl-platform/issues/events{/number}","events_url":"https://api.github.com/repos/bethinkpl/wnl-platform/events","assignees_url":"https://api.github.com/repos/bethinkpl/wnl-platform/assignees{/user}","branches_url":"https://api.github.com/repos/bethinkpl/wnl-platform/branches{/branch}","tags_url":"https://api.github.com/repos/bethinkpl/wnl-platform/tags","blobs_url":"https://api.github.com/repos/bethinkpl/wnl-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bethinkpl/wnl-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bethinkpl/wnl-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/bethinkpl/wnl-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bethinkpl/wnl-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/bethinkpl/wnl-platform/languages","stargazers_url":"https://api.github.com/repos/bethinkpl/wnl-platform/stargazers","contributors_url":"https://api.github.com/repos/bethinkpl/wnl-platform/contributors","subscribers_url":"https://api.github.com/repos/bethinkpl/wnl-platform/subscribers","subscription_url":"https://api.github.com/repos/bethinkpl/wnl-platform/subscription","commits_url":"https://api.github.com/repos/bethinkpl/wnl-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/bethinkpl/wnl-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/bethinkpl/wnl-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/bethinkpl/wnl-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/bethinkpl/wnl-platform/contents/{+path}","compare_url":"https://api.github.com/repos/bethinkpl/wnl-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bethinkpl/wnl-platform/merges","archive_url":"https://api.github.com/repos/bethinkpl/wnl-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bethinkpl/wnl-platform/downloads","issues_url":"https://api.github.com/repos/bethinkpl/wnl-platform/issues{/number}","pulls_url":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/bethinkpl/wnl-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/bethinkpl/wnl-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bethinkpl/wnl-platform/labels{/name}","releases_url":"https://api.github.com/repos/bethinkpl/wnl-platform/releases{/id}","deployments_url":"https://api.github.com/repos/bethinkpl/wnl-platform/deployments","created_at":"2016-12-04T17:29:57Z","updated_at":"2018-11-27T12:09:04Z","pushed_at":"2018-11-28T11:59:05Z","git_url":"git://github.com/bethinkpl/wnl-platform.git","ssh_url":"git@github.com:bethinkpl/wnl-platform.git","clone_url":"https://github.com/bethinkpl/wnl-platform.git","svn_url":"https://github.com/bethinkpl/wnl-platform","homepage":null,"size":10197,"stargazers_count":11,"watchers_count":11,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":3,"open_issues":5,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/1132"},"html":{"href":"https://github.com/bethinkpl/wnl-platform/pull/1132"},"issue":{"href":"https://api.github.com/repos/bethinkpl/wnl-platform/issues/1132"},"comments":{"href":"https://api.github.com/repos/bethinkpl/wnl-platform/issues/1132/comments"},"review_comments":{"href":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/1132/comments"},"review_comment":{"href":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bethinkpl/wnl-platform/pulls/1132/commits"},"statuses":{"href":"https://api.github.com/repos/bethinkpl/wnl-platform/statuses/c9df62f92c0aecf164e5beffdd17657e7225b32e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bognix"}}