{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_54/pulls/comments/106578291","pull_request_review_id":27507289,"id":106578291,"diff_hunk":"@@ -122,4 +122,17 @@ public function confirm($confirmationCode)\n         ->action('Pages\\PagesController@index')\n         ->with('notification', trans('admin.notification.verify_success'));\n     }\n+\n+    public function getSearch(Request $request)\n+    {\n+        $keyword = $request->get('search');\n+        $books = Book::Search($keyword);\n+        if (count($books)) {\n+            return view('pages.search', compact('books', 'keyword'));\n+        }\n+            return redirect()","path":"app/Http/Controllers/Pages/PagesController.php","position":28,"original_position":28,"commit_id":"5549750cc2bf592386e35f3bca10c1c4e25ec2f6","original_commit_id":"5549750cc2bf592386e35f3bca10c1c4e25ec2f6","user":{"login":"at-diephq","id":10395607,"avatar_url":"https://avatars2.githubusercontent.com/u/10395607?v=3","gravatar_id":"","url":"https://api.github.com/users/at-diephq","html_url":"https://github.com/at-diephq","followers_url":"https://api.github.com/users/at-diephq/followers","following_url":"https://api.github.com/users/at-diephq/following{/other_user}","gists_url":"https://api.github.com/users/at-diephq/gists{/gist_id}","starred_url":"https://api.github.com/users/at-diephq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-diephq/subscriptions","organizations_url":"https://api.github.com/users/at-diephq/orgs","repos_url":"https://api.github.com/users/at-diephq/repos","events_url":"https://api.github.com/users/at-diephq/events{/privacy}","received_events_url":"https://api.github.com/users/at-diephq/received_events","type":"User","site_admin":false},"body":"convention ","created_at":"2017-03-17T03:35:59Z","updated_at":"2017-03-17T03:36:32Z","html_url":"https://github.com/framgia/brs_54/pull/13#discussion_r106578291","pull_request_url":"https://api.github.com/repos/framgia/brs_54/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_54/pulls/comments/106578291"},"html":{"href":"https://github.com/framgia/brs_54/pull/13#discussion_r106578291"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_54/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_54/pulls/13","id":110993602,"html_url":"https://github.com/framgia/brs_54/pull/13","diff_url":"https://github.com/framgia/brs_54/pull/13.diff","patch_url":"https://github.com/framgia/brs_54/pull/13.patch","issue_url":"https://api.github.com/repos/framgia/brs_54/issues/13","number":13,"state":"open","locked":false,"title":"Search Page","user":{"login":"tanhuy2110","id":15841619,"avatar_url":"https://avatars2.githubusercontent.com/u/15841619?v=3","gravatar_id":"","url":"https://api.github.com/users/tanhuy2110","html_url":"https://github.com/tanhuy2110","followers_url":"https://api.github.com/users/tanhuy2110/followers","following_url":"https://api.github.com/users/tanhuy2110/following{/other_user}","gists_url":"https://api.github.com/users/tanhuy2110/gists{/gist_id}","starred_url":"https://api.github.com/users/tanhuy2110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanhuy2110/subscriptions","organizations_url":"https://api.github.com/users/tanhuy2110/orgs","repos_url":"https://api.github.com/users/tanhuy2110/repos","events_url":"https://api.github.com/users/tanhuy2110/events{/privacy}","received_events_url":"https://api.github.com/users/tanhuy2110/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-16T04:54:48Z","updated_at":"2017-03-17T03:36:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47acef74546337fecc522c672a683a61563d0d0f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_54/pulls/13/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_54/pulls/13/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_54/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_54/issues/13/comments","statuses_url":"https://api.github.com/repos/framgia/brs_54/statuses/5549750cc2bf592386e35f3bca10c1c4e25ec2f6","head":{"label":"tanhuy2110:search_page","ref":"search_page","sha":"5549750cc2bf592386e35f3bca10c1c4e25ec2f6","user":{"login":"tanhuy2110","id":15841619,"avatar_url":"https://avatars2.githubusercontent.com/u/15841619?v=3","gravatar_id":"","url":"https://api.github.com/users/tanhuy2110","html_url":"https://github.com/tanhuy2110","followers_url":"https://api.github.com/users/tanhuy2110/followers","following_url":"https://api.github.com/users/tanhuy2110/following{/other_user}","gists_url":"https://api.github.com/users/tanhuy2110/gists{/gist_id}","starred_url":"https://api.github.com/users/tanhuy2110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanhuy2110/subscriptions","organizations_url":"https://api.github.com/users/tanhuy2110/orgs","repos_url":"https://api.github.com/users/tanhuy2110/repos","events_url":"https://api.github.com/users/tanhuy2110/events{/privacy}","received_events_url":"https://api.github.com/users/tanhuy2110/received_events","type":"User","site_admin":false},"repo":{"id":82875478,"name":"brs_54","full_name":"tanhuy2110/brs_54","owner":{"login":"tanhuy2110","id":15841619,"avatar_url":"https://avatars2.githubusercontent.com/u/15841619?v=3","gravatar_id":"","url":"https://api.github.com/users/tanhuy2110","html_url":"https://github.com/tanhuy2110","followers_url":"https://api.github.com/users/tanhuy2110/followers","following_url":"https://api.github.com/users/tanhuy2110/following{/other_user}","gists_url":"https://api.github.com/users/tanhuy2110/gists{/gist_id}","starred_url":"https://api.github.com/users/tanhuy2110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanhuy2110/subscriptions","organizations_url":"https://api.github.com/users/tanhuy2110/orgs","repos_url":"https://api.github.com/users/tanhuy2110/repos","events_url":"https://api.github.com/users/tanhuy2110/events{/privacy}","received_events_url":"https://api.github.com/users/tanhuy2110/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tanhuy2110/brs_54","description":null,"fork":true,"url":"https://api.github.com/repos/tanhuy2110/brs_54","forks_url":"https://api.github.com/repos/tanhuy2110/brs_54/forks","keys_url":"https://api.github.com/repos/tanhuy2110/brs_54/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tanhuy2110/brs_54/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tanhuy2110/brs_54/teams","hooks_url":"https://api.github.com/repos/tanhuy2110/brs_54/hooks","issue_events_url":"https://api.github.com/repos/tanhuy2110/brs_54/issues/events{/number}","events_url":"https://api.github.com/repos/tanhuy2110/brs_54/events","assignees_url":"https://api.github.com/repos/tanhuy2110/brs_54/assignees{/user}","branches_url":"https://api.github.com/repos/tanhuy2110/brs_54/branches{/branch}","tags_url":"https://api.github.com/repos/tanhuy2110/brs_54/tags","blobs_url":"https://api.github.com/repos/tanhuy2110/brs_54/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tanhuy2110/brs_54/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tanhuy2110/brs_54/git/refs{/sha}","trees_url":"https://api.github.com/repos/tanhuy2110/brs_54/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tanhuy2110/brs_54/statuses/{sha}","languages_url":"https://api.github.com/repos/tanhuy2110/brs_54/languages","stargazers_url":"https://api.github.com/repos/tanhuy2110/brs_54/stargazers","contributors_url":"https://api.github.com/repos/tanhuy2110/brs_54/contributors","subscribers_url":"https://api.github.com/repos/tanhuy2110/brs_54/subscribers","subscription_url":"https://api.github.com/repos/tanhuy2110/brs_54/subscription","commits_url":"https://api.github.com/repos/tanhuy2110/brs_54/commits{/sha}","git_commits_url":"https://api.github.com/repos/tanhuy2110/brs_54/git/commits{/sha}","comments_url":"https://api.github.com/repos/tanhuy2110/brs_54/comments{/number}","issue_comment_url":"https://api.github.com/repos/tanhuy2110/brs_54/issues/comments{/number}","contents_url":"https://api.github.com/repos/tanhuy2110/brs_54/contents/{+path}","compare_url":"https://api.github.com/repos/tanhuy2110/brs_54/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tanhuy2110/brs_54/merges","archive_url":"https://api.github.com/repos/tanhuy2110/brs_54/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tanhuy2110/brs_54/downloads","issues_url":"https://api.github.com/repos/tanhuy2110/brs_54/issues{/number}","pulls_url":"https://api.github.com/repos/tanhuy2110/brs_54/pulls{/number}","milestones_url":"https://api.github.com/repos/tanhuy2110/brs_54/milestones{/number}","notifications_url":"https://api.github.com/repos/tanhuy2110/brs_54/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tanhuy2110/brs_54/labels{/name}","releases_url":"https://api.github.com/repos/tanhuy2110/brs_54/releases{/id}","deployments_url":"https://api.github.com/repos/tanhuy2110/brs_54/deployments","created_at":"2017-02-23T02:32:49Z","updated_at":"2017-02-23T02:18:17Z","pushed_at":"2017-03-17T01:50:49Z","git_url":"git://github.com/tanhuy2110/brs_54.git","ssh_url":"git@github.com:tanhuy2110/brs_54.git","clone_url":"https://github.com/tanhuy2110/brs_54.git","svn_url":"https://github.com/tanhuy2110/brs_54","homepage":null,"size":225,"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":"7776f7a2e5702bb0b2ee30821af2636f0ea48aa0","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars0.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":82874197,"name":"brs_54","full_name":"framgia/brs_54","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars0.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_54","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/brs_54","forks_url":"https://api.github.com/repos/framgia/brs_54/forks","keys_url":"https://api.github.com/repos/framgia/brs_54/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_54/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_54/teams","hooks_url":"https://api.github.com/repos/framgia/brs_54/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_54/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_54/events","assignees_url":"https://api.github.com/repos/framgia/brs_54/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_54/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_54/tags","blobs_url":"https://api.github.com/repos/framgia/brs_54/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_54/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_54/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_54/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_54/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_54/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_54/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_54/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_54/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_54/subscription","commits_url":"https://api.github.com/repos/framgia/brs_54/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_54/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_54/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_54/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_54/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_54/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_54/merges","archive_url":"https://api.github.com/repos/framgia/brs_54/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_54/downloads","issues_url":"https://api.github.com/repos/framgia/brs_54/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_54/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_54/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_54/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_54/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_54/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_54/deployments","created_at":"2017-02-23T02:18:17Z","updated_at":"2017-02-23T04:51:53Z","pushed_at":"2017-03-17T01:50:50Z","git_url":"git://github.com/framgia/brs_54.git","ssh_url":"git@github.com:framgia/brs_54.git","clone_url":"https://github.com/framgia/brs_54.git","svn_url":"https://github.com/framgia/brs_54","homepage":null,"size":218,"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_54/pulls/13"},"html":{"href":"https://github.com/framgia/brs_54/pull/13"},"issue":{"href":"https://api.github.com/repos/framgia/brs_54/issues/13"},"comments":{"href":"https://api.github.com/repos/framgia/brs_54/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_54/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_54/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_54/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_54/statuses/5549750cc2bf592386e35f3bca10c1c4e25ec2f6"}}}}
{"actor":{"display_login":"at-diephq"}}