{"action":"created","comment":{"url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/comments/123138300","pull_request_review_id":45311957,"id":123138300,"diff_hunk":"@@ -0,0 +1,140 @@\n+<?php\n+\n+namespace App\\Http\\Controllers\\Admin;\n+\n+use App\\Http\\Controllers\\Controller;\n+use App\\Models\\Category;\n+use App\\Http\\Requests\\CategoryRequest;\n+use Illuminate\\Support\\Facades\\DB;\n+\n+class CategoryController extends Controller\n+{\n+    /**\n+     * Display a listing of the resource.\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function index()\n+    {\n+        $category = Category::all();\n+\n+        return view('admin.categories.index', compact('category'));\n+    }\n+\n+    /**\n+     * Show the form for creating a new resource.\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function create()\n+    {\n+        $parents = Category::pluck('name', 'id')->toArray();","path":"app/Http/Controllers/Admin/CategoryController.php","position":31,"original_position":31,"commit_id":"69bb5766561cb5251d477808ca7d24e29da9c00e","original_commit_id":"69bb5766561cb5251d477808ca7d24e29da9c00e","user":{"login":"Framgia-HoVanTuan","id":24287571,"avatar_url":"https://avatars1.githubusercontent.com/u/24287571?v=3","gravatar_id":"","url":"https://api.github.com/users/Framgia-HoVanTuan","html_url":"https://github.com/Framgia-HoVanTuan","followers_url":"https://api.github.com/users/Framgia-HoVanTuan/followers","following_url":"https://api.github.com/users/Framgia-HoVanTuan/following{/other_user}","gists_url":"https://api.github.com/users/Framgia-HoVanTuan/gists{/gist_id}","starred_url":"https://api.github.com/users/Framgia-HoVanTuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Framgia-HoVanTuan/subscriptions","organizations_url":"https://api.github.com/users/Framgia-HoVanTuan/orgs","repos_url":"https://api.github.com/users/Framgia-HoVanTuan/repos","events_url":"https://api.github.com/users/Framgia-HoVanTuan/events{/privacy}","received_events_url":"https://api.github.com/users/Framgia-HoVanTuan/received_events","type":"User","site_admin":false},"body":"need `->toArray()`?","created_at":"2017-06-21T01:54:32Z","updated_at":"2017-06-21T02:00:32Z","html_url":"https://github.com/framgia-php/open-tran-the-tai-blog/pull/7#discussion_r123138300","pull_request_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/comments/123138300"},"html":{"href":"https://github.com/framgia-php/open-tran-the-tai-blog/pull/7#discussion_r123138300"},"pull_request":{"href":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/7","id":126663973,"html_url":"https://github.com/framgia-php/open-tran-the-tai-blog/pull/7","diff_url":"https://github.com/framgia-php/open-tran-the-tai-blog/pull/7.diff","patch_url":"https://github.com/framgia-php/open-tran-the-tai-blog/pull/7.patch","issue_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/issues/7","number":7,"state":"open","locked":false,"title":"CRUD categories","user":{"login":"thetai95","id":28699818,"avatar_url":"https://avatars1.githubusercontent.com/u/28699818?v=3","gravatar_id":"","url":"https://api.github.com/users/thetai95","html_url":"https://github.com/thetai95","followers_url":"https://api.github.com/users/thetai95/followers","following_url":"https://api.github.com/users/thetai95/following{/other_user}","gists_url":"https://api.github.com/users/thetai95/gists{/gist_id}","starred_url":"https://api.github.com/users/thetai95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetai95/subscriptions","organizations_url":"https://api.github.com/users/thetai95/orgs","repos_url":"https://api.github.com/users/thetai95/repos","events_url":"https://api.github.com/users/thetai95/events{/privacy}","received_events_url":"https://api.github.com/users/thetai95/received_events","type":"User","site_admin":false},"body":"CRUD categories","created_at":"2017-06-21T01:45:57Z","updated_at":"2017-06-21T02:00:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa28bf1e4387ff4abc8ff8eac7ab5a1a8eb72b63","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/issues/7/comments","statuses_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/statuses/69bb5766561cb5251d477808ca7d24e29da9c00e","head":{"label":"thetai95:CRUD_Categories","ref":"CRUD_Categories","sha":"69bb5766561cb5251d477808ca7d24e29da9c00e","user":{"login":"thetai95","id":28699818,"avatar_url":"https://avatars1.githubusercontent.com/u/28699818?v=3","gravatar_id":"","url":"https://api.github.com/users/thetai95","html_url":"https://github.com/thetai95","followers_url":"https://api.github.com/users/thetai95/followers","following_url":"https://api.github.com/users/thetai95/following{/other_user}","gists_url":"https://api.github.com/users/thetai95/gists{/gist_id}","starred_url":"https://api.github.com/users/thetai95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetai95/subscriptions","organizations_url":"https://api.github.com/users/thetai95/orgs","repos_url":"https://api.github.com/users/thetai95/repos","events_url":"https://api.github.com/users/thetai95/events{/privacy}","received_events_url":"https://api.github.com/users/thetai95/received_events","type":"User","site_admin":false},"repo":{"id":94061381,"name":"open-tran-the-tai-blog","full_name":"thetai95/open-tran-the-tai-blog","owner":{"login":"thetai95","id":28699818,"avatar_url":"https://avatars1.githubusercontent.com/u/28699818?v=3","gravatar_id":"","url":"https://api.github.com/users/thetai95","html_url":"https://github.com/thetai95","followers_url":"https://api.github.com/users/thetai95/followers","following_url":"https://api.github.com/users/thetai95/following{/other_user}","gists_url":"https://api.github.com/users/thetai95/gists{/gist_id}","starred_url":"https://api.github.com/users/thetai95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetai95/subscriptions","organizations_url":"https://api.github.com/users/thetai95/orgs","repos_url":"https://api.github.com/users/thetai95/repos","events_url":"https://api.github.com/users/thetai95/events{/privacy}","received_events_url":"https://api.github.com/users/thetai95/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thetai95/open-tran-the-tai-blog","description":"[Open] Tran The Tai - Blog","fork":true,"url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog","forks_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/forks","keys_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/teams","hooks_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/hooks","issue_events_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/issues/events{/number}","events_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/events","assignees_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/assignees{/user}","branches_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/branches{/branch}","tags_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/tags","blobs_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/statuses/{sha}","languages_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/languages","stargazers_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/stargazers","contributors_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/contributors","subscribers_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/subscribers","subscription_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/subscription","commits_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/contents/{+path}","compare_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/merges","archive_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/downloads","issues_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/issues{/number}","pulls_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/pulls{/number}","milestones_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/milestones{/number}","notifications_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/labels{/name}","releases_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/releases{/id}","deployments_url":"https://api.github.com/repos/thetai95/open-tran-the-tai-blog/deployments","created_at":"2017-06-12T06:13:43Z","updated_at":"2017-06-12T04:43:44Z","pushed_at":"2017-06-21T01:44:46Z","git_url":"git://github.com/thetai95/open-tran-the-tai-blog.git","ssh_url":"git@github.com:thetai95/open-tran-the-tai-blog.git","clone_url":"https://github.com/thetai95/open-tran-the-tai-blog.git","svn_url":"https://github.com/thetai95/open-tran-the-tai-blog","homepage":null,"size":3942,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"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-php:develop","ref":"develop","sha":"3a0b20a825963c99d962fa0014c2972d27c628c9","user":{"login":"framgia-php","id":29366844,"avatar_url":"https://avatars2.githubusercontent.com/u/29366844?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia-php","html_url":"https://github.com/framgia-php","followers_url":"https://api.github.com/users/framgia-php/followers","following_url":"https://api.github.com/users/framgia-php/following{/other_user}","gists_url":"https://api.github.com/users/framgia-php/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia-php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia-php/subscriptions","organizations_url":"https://api.github.com/users/framgia-php/orgs","repos_url":"https://api.github.com/users/framgia-php/repos","events_url":"https://api.github.com/users/framgia-php/events{/privacy}","received_events_url":"https://api.github.com/users/framgia-php/received_events","type":"Organization","site_admin":false},"repo":{"id":94056125,"name":"open-tran-the-tai-blog","full_name":"framgia-php/open-tran-the-tai-blog","owner":{"login":"framgia-php","id":29366844,"avatar_url":"https://avatars2.githubusercontent.com/u/29366844?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia-php","html_url":"https://github.com/framgia-php","followers_url":"https://api.github.com/users/framgia-php/followers","following_url":"https://api.github.com/users/framgia-php/following{/other_user}","gists_url":"https://api.github.com/users/framgia-php/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia-php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia-php/subscriptions","organizations_url":"https://api.github.com/users/framgia-php/orgs","repos_url":"https://api.github.com/users/framgia-php/repos","events_url":"https://api.github.com/users/framgia-php/events{/privacy}","received_events_url":"https://api.github.com/users/framgia-php/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia-php/open-tran-the-tai-blog","description":"[Open] Tran The Tai - Blog","fork":false,"url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog","forks_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/forks","keys_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/teams","hooks_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/hooks","issue_events_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/issues/events{/number}","events_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/events","assignees_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/assignees{/user}","branches_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/branches{/branch}","tags_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/tags","blobs_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/languages","stargazers_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/stargazers","contributors_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/contributors","subscribers_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/subscribers","subscription_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/subscription","commits_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/contents/{+path}","compare_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/merges","archive_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/downloads","issues_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/issues{/number}","pulls_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/labels{/name}","releases_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/releases{/id}","deployments_url":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/deployments","created_at":"2017-06-12T04:43:44Z","updated_at":"2017-06-12T04:43:44Z","pushed_at":"2017-06-21T01:45:58Z","git_url":"git://github.com/framgia-php/open-tran-the-tai-blog.git","ssh_url":"git@github.com:framgia-php/open-tran-the-tai-blog.git","clone_url":"https://github.com/framgia-php/open-tran-the-tai-blog.git","svn_url":"https://github.com/framgia-php/open-tran-the-tai-blog","homepage":null,"size":3940,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/7"},"html":{"href":"https://github.com/framgia-php/open-tran-the-tai-blog/pull/7"},"issue":{"href":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/issues/7"},"comments":{"href":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framgia-php/open-tran-the-tai-blog/statuses/69bb5766561cb5251d477808ca7d24e29da9c00e"}}}}
{"actor":{"display_login":"Framgia-HoVanTuan"}}