{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_184/pulls/comments/79757827","id":79757827,"diff_hunk":"@@ -37,11 +38,21 @@ class User extends Authenticatable\n         'remember_token',\n     ];\n \n+    public function getAvatarUrl()\n+    {\n+        return asset(config('common.user.path.avatar_url') . $this->avatar);\n+    }\n+\n     public function isAdmin()\n     {\n         return $this->role == config('user.role.admin');\n     }\n \n+    public function isNullAvatar()\n+    {\n+        return $this->avatar == null;\n+    }","path":"app/Models/User.php","position":25,"original_position":25,"commit_id":"b3170093ee2cdb842378a8c5394d600395eeebe5","original_commit_id":"38905e41ec355722ebb2df06310c70618203d47e","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":"(2tat) ss cc -_- chú có biết dùng `is_null()` không?","created_at":"2016-09-21T04:08:27Z","updated_at":"2016-09-21T04:08:27Z","html_url":"https://github.com/framgia/fels_184/pull/23#discussion_r79757827","pull_request_url":"https://api.github.com/repos/framgia/fels_184/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_184/pulls/comments/79757827"},"html":{"href":"https://github.com/framgia/fels_184/pull/23#discussion_r79757827"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_184/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_184/pulls/23","id":86091384,"html_url":"https://github.com/framgia/fels_184/pull/23","diff_url":"https://github.com/framgia/fels_184/pull/23.diff","patch_url":"https://github.com/framgia/fels_184/pull/23.patch","issue_url":"https://api.github.com/repos/framgia/fels_184/issues/23","number":23,"state":"open","locked":false,"title":"Upload Profile Image","user":{"login":"thandongtb","id":7605345,"avatar_url":"https://avatars.githubusercontent.com/u/7605345?v=3","gravatar_id":"","url":"https://api.github.com/users/thandongtb","html_url":"https://github.com/thandongtb","followers_url":"https://api.github.com/users/thandongtb/followers","following_url":"https://api.github.com/users/thandongtb/following{/other_user}","gists_url":"https://api.github.com/users/thandongtb/gists{/gist_id}","starred_url":"https://api.github.com/users/thandongtb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thandongtb/subscriptions","organizations_url":"https://api.github.com/users/thandongtb/orgs","repos_url":"https://api.github.com/users/thandongtb/repos","events_url":"https://api.github.com/users/thandongtb/events{/privacy}","received_events_url":"https://api.github.com/users/thandongtb/received_events","type":"User","site_admin":false},"body":"Upload User Avatar ngoài trang chủ","created_at":"2016-09-21T03:14:49Z","updated_at":"2016-09-21T04:08:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f43fc66154b5047c4d4c9962c58c36766f1c6c53","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_184/pulls/23/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_184/pulls/23/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_184/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_184/issues/23/comments","statuses_url":"https://api.github.com/repos/framgia/fels_184/statuses/b3170093ee2cdb842378a8c5394d600395eeebe5","head":{"label":"thandongtb:uploadAvatar","ref":"uploadAvatar","sha":"b3170093ee2cdb842378a8c5394d600395eeebe5","user":{"login":"thandongtb","id":7605345,"avatar_url":"https://avatars.githubusercontent.com/u/7605345?v=3","gravatar_id":"","url":"https://api.github.com/users/thandongtb","html_url":"https://github.com/thandongtb","followers_url":"https://api.github.com/users/thandongtb/followers","following_url":"https://api.github.com/users/thandongtb/following{/other_user}","gists_url":"https://api.github.com/users/thandongtb/gists{/gist_id}","starred_url":"https://api.github.com/users/thandongtb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thandongtb/subscriptions","organizations_url":"https://api.github.com/users/thandongtb/orgs","repos_url":"https://api.github.com/users/thandongtb/repos","events_url":"https://api.github.com/users/thandongtb/events{/privacy}","received_events_url":"https://api.github.com/users/thandongtb/received_events","type":"User","site_admin":false},"repo":{"id":67665999,"name":"fels_184","full_name":"thandongtb/fels_184","owner":{"login":"thandongtb","id":7605345,"avatar_url":"https://avatars.githubusercontent.com/u/7605345?v=3","gravatar_id":"","url":"https://api.github.com/users/thandongtb","html_url":"https://github.com/thandongtb","followers_url":"https://api.github.com/users/thandongtb/followers","following_url":"https://api.github.com/users/thandongtb/following{/other_user}","gists_url":"https://api.github.com/users/thandongtb/gists{/gist_id}","starred_url":"https://api.github.com/users/thandongtb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thandongtb/subscriptions","organizations_url":"https://api.github.com/users/thandongtb/orgs","repos_url":"https://api.github.com/users/thandongtb/repos","events_url":"https://api.github.com/users/thandongtb/events{/privacy}","received_events_url":"https://api.github.com/users/thandongtb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thandongtb/fels_184","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/thandongtb/fels_184","forks_url":"https://api.github.com/repos/thandongtb/fels_184/forks","keys_url":"https://api.github.com/repos/thandongtb/fels_184/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thandongtb/fels_184/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thandongtb/fels_184/teams","hooks_url":"https://api.github.com/repos/thandongtb/fels_184/hooks","issue_events_url":"https://api.github.com/repos/thandongtb/fels_184/issues/events{/number}","events_url":"https://api.github.com/repos/thandongtb/fels_184/events","assignees_url":"https://api.github.com/repos/thandongtb/fels_184/assignees{/user}","branches_url":"https://api.github.com/repos/thandongtb/fels_184/branches{/branch}","tags_url":"https://api.github.com/repos/thandongtb/fels_184/tags","blobs_url":"https://api.github.com/repos/thandongtb/fels_184/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thandongtb/fels_184/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thandongtb/fels_184/git/refs{/sha}","trees_url":"https://api.github.com/repos/thandongtb/fels_184/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thandongtb/fels_184/statuses/{sha}","languages_url":"https://api.github.com/repos/thandongtb/fels_184/languages","stargazers_url":"https://api.github.com/repos/thandongtb/fels_184/stargazers","contributors_url":"https://api.github.com/repos/thandongtb/fels_184/contributors","subscribers_url":"https://api.github.com/repos/thandongtb/fels_184/subscribers","subscription_url":"https://api.github.com/repos/thandongtb/fels_184/subscription","commits_url":"https://api.github.com/repos/thandongtb/fels_184/commits{/sha}","git_commits_url":"https://api.github.com/repos/thandongtb/fels_184/git/commits{/sha}","comments_url":"https://api.github.com/repos/thandongtb/fels_184/comments{/number}","issue_comment_url":"https://api.github.com/repos/thandongtb/fels_184/issues/comments{/number}","contents_url":"https://api.github.com/repos/thandongtb/fels_184/contents/{+path}","compare_url":"https://api.github.com/repos/thandongtb/fels_184/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thandongtb/fels_184/merges","archive_url":"https://api.github.com/repos/thandongtb/fels_184/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thandongtb/fels_184/downloads","issues_url":"https://api.github.com/repos/thandongtb/fels_184/issues{/number}","pulls_url":"https://api.github.com/repos/thandongtb/fels_184/pulls{/number}","milestones_url":"https://api.github.com/repos/thandongtb/fels_184/milestones{/number}","notifications_url":"https://api.github.com/repos/thandongtb/fels_184/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thandongtb/fels_184/labels{/name}","releases_url":"https://api.github.com/repos/thandongtb/fels_184/releases{/id}","deployments_url":"https://api.github.com/repos/thandongtb/fels_184/deployments","created_at":"2016-09-08T03:42:27Z","updated_at":"2016-09-08T10:22:05Z","pushed_at":"2016-09-21T04:04:44Z","git_url":"git://github.com/thandongtb/fels_184.git","ssh_url":"git@github.com:thandongtb/fels_184.git","clone_url":"https://github.com/thandongtb/fels_184.git","svn_url":"https://github.com/thandongtb/fels_184","homepage":"","size":287,"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":"85817f1dc7461e7081ca9fbaff62b085f79a6ffd","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":67661519,"name":"fels_184","full_name":"framgia/fels_184","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/fels_184","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_184","forks_url":"https://api.github.com/repos/framgia/fels_184/forks","keys_url":"https://api.github.com/repos/framgia/fels_184/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_184/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_184/teams","hooks_url":"https://api.github.com/repos/framgia/fels_184/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_184/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_184/events","assignees_url":"https://api.github.com/repos/framgia/fels_184/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_184/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_184/tags","blobs_url":"https://api.github.com/repos/framgia/fels_184/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_184/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_184/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_184/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_184/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_184/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_184/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_184/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_184/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_184/subscription","commits_url":"https://api.github.com/repos/framgia/fels_184/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_184/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_184/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_184/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_184/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_184/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_184/merges","archive_url":"https://api.github.com/repos/framgia/fels_184/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_184/downloads","issues_url":"https://api.github.com/repos/framgia/fels_184/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_184/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_184/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_184/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_184/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_184/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_184/deployments","created_at":"2016-09-08T02:36:13Z","updated_at":"2016-09-08T02:36:13Z","pushed_at":"2016-09-21T04:04:44Z","git_url":"git://github.com/framgia/fels_184.git","ssh_url":"git@github.com:framgia/fels_184.git","clone_url":"https://github.com/framgia/fels_184.git","svn_url":"https://github.com/framgia/fels_184","homepage":null,"size":298,"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":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_184/pulls/23"},"html":{"href":"https://github.com/framgia/fels_184/pull/23"},"issue":{"href":"https://api.github.com/repos/framgia/fels_184/issues/23"},"comments":{"href":"https://api.github.com/repos/framgia/fels_184/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_184/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_184/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_184/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_184/statuses/b3170093ee2cdb842378a8c5394d600395eeebe5"}}}}
{"actor":{"display_login":"NgTheThao"}}