{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_48/pulls/comments/94200825","pull_request_review_id":14731834,"id":94200825,"diff_hunk":"@@ -89,4 +90,20 @@ public function author()\n     {\n         return $this->belongsTo(Author::class);\n     }\n+\n+    /**\n+     * Get Percent rating book\n+     *\n+     * @return int\n+     */\n+    public function computePercentRating()\n+    {\n+        //number avg x 0.05(%)\n+        return (int)($this->avg_rate / config('settings.book.number_rating'));","path":"app/Models/Book.php","position":21,"original_position":21,"commit_id":"95c26500fb9971521e1c2aa23e257df8b2efbea4","original_commit_id":"95c26500fb9971521e1c2aa23e257df8b2efbea4","user":{"login":"votuanthanh","id":13312564,"avatar_url":"https://avatars.githubusercontent.com/u/13312564?v=3","gravatar_id":"","url":"https://api.github.com/users/votuanthanh","html_url":"https://github.com/votuanthanh","followers_url":"https://api.github.com/users/votuanthanh/followers","following_url":"https://api.github.com/users/votuanthanh/following{/other_user}","gists_url":"https://api.github.com/users/votuanthanh/gists{/gist_id}","starred_url":"https://api.github.com/users/votuanthanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/votuanthanh/subscriptions","organizations_url":"https://api.github.com/users/votuanthanh/orgs","repos_url":"https://api.github.com/users/votuanthanh/repos","events_url":"https://api.github.com/users/votuanthanh/events{/privacy}","received_events_url":"https://api.github.com/users/votuanthanh/received_events","type":"User","site_admin":false},"body":"tính rating của book á bạn, (avg_book *100 /5 ) :)","created_at":"2016-12-30T03:53:52Z","updated_at":"2016-12-30T03:53:52Z","html_url":"https://github.com/framgia/brs_48/pull/6#discussion_r94200825","pull_request_url":"https://api.github.com/repos/framgia/brs_48/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_48/pulls/comments/94200825"},"html":{"href":"https://github.com/framgia/brs_48/pull/6#discussion_r94200825"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_48/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_48/pulls/6","id":99720126,"html_url":"https://github.com/framgia/brs_48/pull/6","diff_url":"https://github.com/framgia/brs_48/pull/6.diff","patch_url":"https://github.com/framgia/brs_48/pull/6.patch","issue_url":"https://api.github.com/repos/framgia/brs_48/issues/6","number":6,"state":"open","locked":false,"title":"Login + Register + Homepage","user":{"login":"votuanthanh","id":13312564,"avatar_url":"https://avatars.githubusercontent.com/u/13312564?v=3","gravatar_id":"","url":"https://api.github.com/users/votuanthanh","html_url":"https://github.com/votuanthanh","followers_url":"https://api.github.com/users/votuanthanh/followers","following_url":"https://api.github.com/users/votuanthanh/following{/other_user}","gists_url":"https://api.github.com/users/votuanthanh/gists{/gist_id}","starred_url":"https://api.github.com/users/votuanthanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/votuanthanh/subscriptions","organizations_url":"https://api.github.com/users/votuanthanh/orgs","repos_url":"https://api.github.com/users/votuanthanh/repos","events_url":"https://api.github.com/users/votuanthanh/events{/privacy}","received_events_url":"https://api.github.com/users/votuanthanh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-30T03:44:08Z","updated_at":"2016-12-30T03:53:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9673fd6a3539e9eacc546f44d58c1df0af958f7d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_48/pulls/6/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_48/pulls/6/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_48/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_48/issues/6/comments","statuses_url":"https://api.github.com/repos/framgia/brs_48/statuses/95c26500fb9971521e1c2aa23e257df8b2efbea4","head":{"label":"votuanthanh:backend","ref":"backend","sha":"95c26500fb9971521e1c2aa23e257df8b2efbea4","user":{"login":"votuanthanh","id":13312564,"avatar_url":"https://avatars.githubusercontent.com/u/13312564?v=3","gravatar_id":"","url":"https://api.github.com/users/votuanthanh","html_url":"https://github.com/votuanthanh","followers_url":"https://api.github.com/users/votuanthanh/followers","following_url":"https://api.github.com/users/votuanthanh/following{/other_user}","gists_url":"https://api.github.com/users/votuanthanh/gists{/gist_id}","starred_url":"https://api.github.com/users/votuanthanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/votuanthanh/subscriptions","organizations_url":"https://api.github.com/users/votuanthanh/orgs","repos_url":"https://api.github.com/users/votuanthanh/repos","events_url":"https://api.github.com/users/votuanthanh/events{/privacy}","received_events_url":"https://api.github.com/users/votuanthanh/received_events","type":"User","site_admin":false},"repo":{"id":77109670,"name":"brs_48","full_name":"votuanthanh/brs_48","owner":{"login":"votuanthanh","id":13312564,"avatar_url":"https://avatars.githubusercontent.com/u/13312564?v=3","gravatar_id":"","url":"https://api.github.com/users/votuanthanh","html_url":"https://github.com/votuanthanh","followers_url":"https://api.github.com/users/votuanthanh/followers","following_url":"https://api.github.com/users/votuanthanh/following{/other_user}","gists_url":"https://api.github.com/users/votuanthanh/gists{/gist_id}","starred_url":"https://api.github.com/users/votuanthanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/votuanthanh/subscriptions","organizations_url":"https://api.github.com/users/votuanthanh/orgs","repos_url":"https://api.github.com/users/votuanthanh/repos","events_url":"https://api.github.com/users/votuanthanh/events{/privacy}","received_events_url":"https://api.github.com/users/votuanthanh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/votuanthanh/brs_48","description":null,"fork":true,"url":"https://api.github.com/repos/votuanthanh/brs_48","forks_url":"https://api.github.com/repos/votuanthanh/brs_48/forks","keys_url":"https://api.github.com/repos/votuanthanh/brs_48/keys{/key_id}","collaborators_url":"https://api.github.com/repos/votuanthanh/brs_48/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/votuanthanh/brs_48/teams","hooks_url":"https://api.github.com/repos/votuanthanh/brs_48/hooks","issue_events_url":"https://api.github.com/repos/votuanthanh/brs_48/issues/events{/number}","events_url":"https://api.github.com/repos/votuanthanh/brs_48/events","assignees_url":"https://api.github.com/repos/votuanthanh/brs_48/assignees{/user}","branches_url":"https://api.github.com/repos/votuanthanh/brs_48/branches{/branch}","tags_url":"https://api.github.com/repos/votuanthanh/brs_48/tags","blobs_url":"https://api.github.com/repos/votuanthanh/brs_48/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/votuanthanh/brs_48/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/votuanthanh/brs_48/git/refs{/sha}","trees_url":"https://api.github.com/repos/votuanthanh/brs_48/git/trees{/sha}","statuses_url":"https://api.github.com/repos/votuanthanh/brs_48/statuses/{sha}","languages_url":"https://api.github.com/repos/votuanthanh/brs_48/languages","stargazers_url":"https://api.github.com/repos/votuanthanh/brs_48/stargazers","contributors_url":"https://api.github.com/repos/votuanthanh/brs_48/contributors","subscribers_url":"https://api.github.com/repos/votuanthanh/brs_48/subscribers","subscription_url":"https://api.github.com/repos/votuanthanh/brs_48/subscription","commits_url":"https://api.github.com/repos/votuanthanh/brs_48/commits{/sha}","git_commits_url":"https://api.github.com/repos/votuanthanh/brs_48/git/commits{/sha}","comments_url":"https://api.github.com/repos/votuanthanh/brs_48/comments{/number}","issue_comment_url":"https://api.github.com/repos/votuanthanh/brs_48/issues/comments{/number}","contents_url":"https://api.github.com/repos/votuanthanh/brs_48/contents/{+path}","compare_url":"https://api.github.com/repos/votuanthanh/brs_48/compare/{base}...{head}","merges_url":"https://api.github.com/repos/votuanthanh/brs_48/merges","archive_url":"https://api.github.com/repos/votuanthanh/brs_48/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/votuanthanh/brs_48/downloads","issues_url":"https://api.github.com/repos/votuanthanh/brs_48/issues{/number}","pulls_url":"https://api.github.com/repos/votuanthanh/brs_48/pulls{/number}","milestones_url":"https://api.github.com/repos/votuanthanh/brs_48/milestones{/number}","notifications_url":"https://api.github.com/repos/votuanthanh/brs_48/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/votuanthanh/brs_48/labels{/name}","releases_url":"https://api.github.com/repos/votuanthanh/brs_48/releases{/id}","deployments_url":"https://api.github.com/repos/votuanthanh/brs_48/deployments","created_at":"2016-12-22T03:43:52Z","updated_at":"2016-12-22T02:49:22Z","pushed_at":"2016-12-30T03:42:57Z","git_url":"git://github.com/votuanthanh/brs_48.git","ssh_url":"git@github.com:votuanthanh/brs_48.git","clone_url":"https://github.com/votuanthanh/brs_48.git","svn_url":"https://github.com/votuanthanh/brs_48","homepage":null,"size":1278,"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":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"860350160d969da06437e51ce79e126e632a55a3","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":77104875,"name":"brs_48","full_name":"framgia/brs_48","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/brs_48","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/brs_48","forks_url":"https://api.github.com/repos/framgia/brs_48/forks","keys_url":"https://api.github.com/repos/framgia/brs_48/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_48/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_48/teams","hooks_url":"https://api.github.com/repos/framgia/brs_48/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_48/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_48/events","assignees_url":"https://api.github.com/repos/framgia/brs_48/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_48/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_48/tags","blobs_url":"https://api.github.com/repos/framgia/brs_48/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_48/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_48/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_48/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_48/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_48/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_48/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_48/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_48/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_48/subscription","commits_url":"https://api.github.com/repos/framgia/brs_48/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_48/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_48/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_48/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_48/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_48/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_48/merges","archive_url":"https://api.github.com/repos/framgia/brs_48/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_48/downloads","issues_url":"https://api.github.com/repos/framgia/brs_48/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_48/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_48/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_48/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_48/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_48/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_48/deployments","created_at":"2016-12-22T02:49:22Z","updated_at":"2016-12-22T06:16:35Z","pushed_at":"2016-12-30T03:44:08Z","git_url":"git://github.com/framgia/brs_48.git","ssh_url":"git@github.com:framgia/brs_48.git","clone_url":"https://github.com/framgia/brs_48.git","svn_url":"https://github.com/framgia/brs_48","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_48/pulls/6"},"html":{"href":"https://github.com/framgia/brs_48/pull/6"},"issue":{"href":"https://api.github.com/repos/framgia/brs_48/issues/6"},"comments":{"href":"https://api.github.com/repos/framgia/brs_48/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_48/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_48/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_48/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_48/statuses/95c26500fb9971521e1c2aa23e257df8b2efbea4"}}}}
{"actor":{"display_login":"votuanthanh"}}