{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/ffn_04/pulls/comments/72748313","id":72748313,"diff_hunk":"@@ -0,0 +1,111 @@\n+<?php\n+namespace App\\Repositories\\User;\n+\n+use App\\Repositories\\BaseRepository;\n+use App\\Models\\User;\n+use App\\Models\\SocialAcount;\n+use Exception;\n+use Mail;\n+use DB;\n+use DateTime;\n+\n+class UserRepository extends BaseRepository implements UserRepositoryInterface\n+{\n+    public function __construct(User $user)\n+    {\n+        $this->model = $user;\n+    }\n+\n+    public function create($request, $confirmationCode)\n+    {\n+        $user = [\n+            'email' => $request->email,\n+            'name' => $request->name,\n+            'password' => $request->password,\n+            'confirmed' => User::NOT_CONFIRM,\n+            'confirmation_code' => $confirmationCode,\n+        ];\n+\n+        $createUser = $this->model->create($user);\n+\n+        if (!$createUser) {\n+            throw new Exception('message.create_user_fail');\n+        }\n+\n+        $sendMailData = [\n+            'email' => $request->email,\n+            'name' => $request->name,\n+            'confirmation_code' => $confirmationCode,\n+        ];\n+        Mail::send('emails.welcome', $sendMailData, function ($message) use ($sendMailData){","path":"app/Repositories/User/UserRepository.php","position":40,"original_position":40,"commit_id":"e082df7b7430f8dbbc92f148c74ae573402843b6","original_commit_id":"ce9a4a4da366aabafbede1550f3036abf165395f","user":{"login":"NgTheThao","id":11207197,"avatar_url":"https://avatars.githubusercontent.com/u/11207197?v=3","gravatar_id":"","url":"https://api.github.com/users/NgTheThao","html_url":"https://github.com/NgTheThao","followers_url":"https://api.github.com/users/NgTheThao/followers","following_url":"https://api.github.com/users/NgTheThao/following{/other_user}","gists_url":"https://api.github.com/users/NgTheThao/gists{/gist_id}","starred_url":"https://api.github.com/users/NgTheThao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgTheThao/subscriptions","organizations_url":"https://api.github.com/users/NgTheThao/orgs","repos_url":"https://api.github.com/users/NgTheThao/repos","events_url":"https://api.github.com/users/NgTheThao/events{/privacy}","received_events_url":"https://api.github.com/users/NgTheThao/received_events","type":"User","site_admin":false},"body":"ok, anh tin tưởng cô, vì anh config mãi không chạy -_-","created_at":"2016-07-29T06:48:56Z","updated_at":"2016-07-29T06:48:56Z","html_url":"https://github.com/framgia/ffn_04/pull/8#discussion_r72748313","pull_request_url":"https://api.github.com/repos/framgia/ffn_04/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/framgia/ffn_04/pulls/comments/72748313"},"html":{"href":"https://github.com/framgia/ffn_04/pull/8#discussion_r72748313"},"pull_request":{"href":"https://api.github.com/repos/framgia/ffn_04/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/ffn_04/pulls/8","id":79163217,"html_url":"https://github.com/framgia/ffn_04/pull/8","diff_url":"https://github.com/framgia/ffn_04/pull/8.diff","patch_url":"https://github.com/framgia/ffn_04/pull/8.patch","issue_url":"https://api.github.com/repos/framgia/ffn_04/issues/8","number":8,"state":"open","locked":false,"title":"login logout","user":{"login":"NguyenQuynh1994","id":18943794,"avatar_url":"https://avatars.githubusercontent.com/u/18943794?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenQuynh1994","html_url":"https://github.com/NguyenQuynh1994","followers_url":"https://api.github.com/users/NguyenQuynh1994/followers","following_url":"https://api.github.com/users/NguyenQuynh1994/following{/other_user}","gists_url":"https://api.github.com/users/NguyenQuynh1994/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenQuynh1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenQuynh1994/subscriptions","organizations_url":"https://api.github.com/users/NguyenQuynh1994/orgs","repos_url":"https://api.github.com/users/NguyenQuynh1994/repos","events_url":"https://api.github.com/users/NguyenQuynh1994/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenQuynh1994/received_events","type":"User","site_admin":false},"body":"Create login, logout, register, \r\nAuthenticate via Facebook, Google","created_at":"2016-07-28T09:27:11Z","updated_at":"2016-07-29T06:48:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"caff8965a378b1052edf569bea21ccf7eec3d24b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/ffn_04/pulls/8/commits","review_comments_url":"https://api.github.com/repos/framgia/ffn_04/pulls/8/comments","review_comment_url":"https://api.github.com/repos/framgia/ffn_04/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/ffn_04/issues/8/comments","statuses_url":"https://api.github.com/repos/framgia/ffn_04/statuses/e082df7b7430f8dbbc92f148c74ae573402843b6","head":{"label":"NguyenQuynh1994:task1","ref":"task1","sha":"e082df7b7430f8dbbc92f148c74ae573402843b6","user":{"login":"NguyenQuynh1994","id":18943794,"avatar_url":"https://avatars.githubusercontent.com/u/18943794?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenQuynh1994","html_url":"https://github.com/NguyenQuynh1994","followers_url":"https://api.github.com/users/NguyenQuynh1994/followers","following_url":"https://api.github.com/users/NguyenQuynh1994/following{/other_user}","gists_url":"https://api.github.com/users/NguyenQuynh1994/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenQuynh1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenQuynh1994/subscriptions","organizations_url":"https://api.github.com/users/NguyenQuynh1994/orgs","repos_url":"https://api.github.com/users/NguyenQuynh1994/repos","events_url":"https://api.github.com/users/NguyenQuynh1994/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenQuynh1994/received_events","type":"User","site_admin":false},"repo":{"id":64104042,"name":"ffn_04","full_name":"NguyenQuynh1994/ffn_04","owner":{"login":"NguyenQuynh1994","id":18943794,"avatar_url":"https://avatars.githubusercontent.com/u/18943794?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenQuynh1994","html_url":"https://github.com/NguyenQuynh1994","followers_url":"https://api.github.com/users/NguyenQuynh1994/followers","following_url":"https://api.github.com/users/NguyenQuynh1994/following{/other_user}","gists_url":"https://api.github.com/users/NguyenQuynh1994/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenQuynh1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenQuynh1994/subscriptions","organizations_url":"https://api.github.com/users/NguyenQuynh1994/orgs","repos_url":"https://api.github.com/users/NguyenQuynh1994/repos","events_url":"https://api.github.com/users/NguyenQuynh1994/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenQuynh1994/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NguyenQuynh1994/ffn_04","description":"Framgia Football News (training)","fork":true,"url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04","forks_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/forks","keys_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/teams","hooks_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/hooks","issue_events_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/issues/events{/number}","events_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/events","assignees_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/assignees{/user}","branches_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/branches{/branch}","tags_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/tags","blobs_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/git/refs{/sha}","trees_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/statuses/{sha}","languages_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/languages","stargazers_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/stargazers","contributors_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/contributors","subscribers_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/subscribers","subscription_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/subscription","commits_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/commits{/sha}","git_commits_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/git/commits{/sha}","comments_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/comments{/number}","issue_comment_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/issues/comments{/number}","contents_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/contents/{+path}","compare_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/merges","archive_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/downloads","issues_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/issues{/number}","pulls_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/pulls{/number}","milestones_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/milestones{/number}","notifications_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/labels{/name}","releases_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/releases{/id}","deployments_url":"https://api.github.com/repos/NguyenQuynh1994/ffn_04/deployments","created_at":"2016-07-25T04:39:21Z","updated_at":"2016-07-25T04:15:22Z","pushed_at":"2016-07-29T06:48:28Z","git_url":"git://github.com/NguyenQuynh1994/ffn_04.git","ssh_url":"git@github.com:NguyenQuynh1994/ffn_04.git","clone_url":"https://github.com/NguyenQuynh1994/ffn_04.git","svn_url":"https://github.com/NguyenQuynh1994/ffn_04","homepage":null,"size":212,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"674891850284c2f9a8a49475a9e53473f3886e79","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":64103106,"name":"ffn_04","full_name":"framgia/ffn_04","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/ffn_04","description":"Framgia Football News (training)","fork":false,"url":"https://api.github.com/repos/framgia/ffn_04","forks_url":"https://api.github.com/repos/framgia/ffn_04/forks","keys_url":"https://api.github.com/repos/framgia/ffn_04/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/ffn_04/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/ffn_04/teams","hooks_url":"https://api.github.com/repos/framgia/ffn_04/hooks","issue_events_url":"https://api.github.com/repos/framgia/ffn_04/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/ffn_04/events","assignees_url":"https://api.github.com/repos/framgia/ffn_04/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/ffn_04/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/ffn_04/tags","blobs_url":"https://api.github.com/repos/framgia/ffn_04/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/ffn_04/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/ffn_04/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/ffn_04/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/ffn_04/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/ffn_04/languages","stargazers_url":"https://api.github.com/repos/framgia/ffn_04/stargazers","contributors_url":"https://api.github.com/repos/framgia/ffn_04/contributors","subscribers_url":"https://api.github.com/repos/framgia/ffn_04/subscribers","subscription_url":"https://api.github.com/repos/framgia/ffn_04/subscription","commits_url":"https://api.github.com/repos/framgia/ffn_04/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/ffn_04/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/ffn_04/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/ffn_04/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/ffn_04/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/ffn_04/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/ffn_04/merges","archive_url":"https://api.github.com/repos/framgia/ffn_04/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/ffn_04/downloads","issues_url":"https://api.github.com/repos/framgia/ffn_04/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/ffn_04/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/ffn_04/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/ffn_04/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/ffn_04/labels{/name}","releases_url":"https://api.github.com/repos/framgia/ffn_04/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/ffn_04/deployments","created_at":"2016-07-25T04:15:22Z","updated_at":"2016-07-25T04:15:22Z","pushed_at":"2016-07-29T06:48:29Z","git_url":"git://github.com/framgia/ffn_04.git","ssh_url":"git@github.com:framgia/ffn_04.git","clone_url":"https://github.com/framgia/ffn_04.git","svn_url":"https://github.com/framgia/ffn_04","homepage":null,"size":1428,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/ffn_04/pulls/8"},"html":{"href":"https://github.com/framgia/ffn_04/pull/8"},"issue":{"href":"https://api.github.com/repos/framgia/ffn_04/issues/8"},"comments":{"href":"https://api.github.com/repos/framgia/ffn_04/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/ffn_04/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/ffn_04/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/ffn_04/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/ffn_04/statuses/e082df7b7430f8dbbc92f148c74ae573402843b6"}}}}
{"actor":{"display_login":"NgTheThao"}}