{"action":"created","comment":{"url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/comments/41819779","id":41819779,"diff_hunk":"@@ -0,0 +1,95 @@\n+<?php\n+\n+namespace App\\Http\\Controllers;\n+\n+use Illuminate\\Http\\Request;\n+use App\\Http\\Requests;\n+use App\\Http\\Controllers\\Controller;\n+use App\\models\\Category;\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+        $categories = Category::all();\n+\n+        return view('categories.index', ['categories' => $categories]);\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+        //\n+        return view('categories.create');\n+    }\n+\n+    /**\n+     * Store a newly created resource in storage.\n+     *\n+     * @param  \\Illuminate\\Http\\Request  $request\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function store(Request $request)\n+    {\n+\n+        $dataArray = $request->all();\n+\n+        Category::create($dataArray);\n+\n+        return redirect('category');\n+    }\n+\n+    /**\n+     * Display the specified resource.\n+     *\n+     * @param  int  $id\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function show($id)\n+    {\n+        //\n+    }\n+\n+    /**\n+     * Show the form for editing the specified resource.\n+     *\n+     * @param  int  $id\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function edit($id)\n+    {\n+        //\n+    }\n+\n+    /**\n+     * Update the specified resource in storage.\n+     *\n+     * @param  \\Illuminate\\Http\\Request  $request\n+     * @param  int  $id\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function update(Request $request, $id)\n+    {\n+        //\n+    }","path":"app/Http/Controllers/CategoryController.php","position":83,"original_position":83,"commit_id":"08cf387b755ff8585d00ed00519d8ee5f1441179","original_commit_id":"08cf387b755ff8585d00ed00519d8ee5f1441179","user":{"login":"namnv609","id":8691772,"avatar_url":"https://avatars.githubusercontent.com/u/8691772?v=3","gravatar_id":"","url":"https://api.github.com/users/namnv609","html_url":"https://github.com/namnv609","followers_url":"https://api.github.com/users/namnv609/followers","following_url":"https://api.github.com/users/namnv609/following{/other_user}","gists_url":"https://api.github.com/users/namnv609/gists{/gist_id}","starred_url":"https://api.github.com/users/namnv609/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namnv609/subscriptions","organizations_url":"https://api.github.com/users/namnv609/orgs","repos_url":"https://api.github.com/users/namnv609/repos","events_url":"https://api.github.com/users/namnv609/events{/privacy}","received_events_url":"https://api.github.com/users/namnv609/received_events","type":"User","site_admin":false},"body":"Không dùng (chưa dùng) thì xóa đi bạn!","created_at":"2015-10-13T01:48:27Z","updated_at":"2015-10-13T01:48:27Z","html_url":"https://github.com/namnv609/phuongnd-laravel5-tutorial/pull/5#discussion_r41819779","pull_request_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/comments/41819779"},"html":{"href":"https://github.com/namnv609/phuongnd-laravel5-tutorial/pull/5#discussion_r41819779"},"pull_request":{"href":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/5","id":47482230,"html_url":"https://github.com/namnv609/phuongnd-laravel5-tutorial/pull/5","diff_url":"https://github.com/namnv609/phuongnd-laravel5-tutorial/pull/5.diff","patch_url":"https://github.com/namnv609/phuongnd-laravel5-tutorial/pull/5.patch","issue_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/issues/5","number":5,"state":"open","locked":false,"title":"Create and show all Category","user":{"login":"phuongbk","id":8966876,"avatar_url":"https://avatars.githubusercontent.com/u/8966876?v=3","gravatar_id":"","url":"https://api.github.com/users/phuongbk","html_url":"https://github.com/phuongbk","followers_url":"https://api.github.com/users/phuongbk/followers","following_url":"https://api.github.com/users/phuongbk/following{/other_user}","gists_url":"https://api.github.com/users/phuongbk/gists{/gist_id}","starred_url":"https://api.github.com/users/phuongbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuongbk/subscriptions","organizations_url":"https://api.github.com/users/phuongbk/orgs","repos_url":"https://api.github.com/users/phuongbk/repos","events_url":"https://api.github.com/users/phuongbk/events{/privacy}","received_events_url":"https://api.github.com/users/phuongbk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-13T01:33:01Z","updated_at":"2015-10-13T01:48:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73416c28334075858594e9d68676b0a1602d8294","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/5/commits","review_comments_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/5/comments","review_comment_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/comments{/number}","comments_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/issues/5/comments","statuses_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/statuses/08cf387b755ff8585d00ed00519d8ee5f1441179","head":{"label":"phuongbk:Category","ref":"Category","sha":"08cf387b755ff8585d00ed00519d8ee5f1441179","user":{"login":"phuongbk","id":8966876,"avatar_url":"https://avatars.githubusercontent.com/u/8966876?v=3","gravatar_id":"","url":"https://api.github.com/users/phuongbk","html_url":"https://github.com/phuongbk","followers_url":"https://api.github.com/users/phuongbk/followers","following_url":"https://api.github.com/users/phuongbk/following{/other_user}","gists_url":"https://api.github.com/users/phuongbk/gists{/gist_id}","starred_url":"https://api.github.com/users/phuongbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuongbk/subscriptions","organizations_url":"https://api.github.com/users/phuongbk/orgs","repos_url":"https://api.github.com/users/phuongbk/repos","events_url":"https://api.github.com/users/phuongbk/events{/privacy}","received_events_url":"https://api.github.com/users/phuongbk/received_events","type":"User","site_admin":false},"repo":{"id":43485337,"name":"phuongnd-laravel5-tutorial","full_name":"phuongbk/phuongnd-laravel5-tutorial","owner":{"login":"phuongbk","id":8966876,"avatar_url":"https://avatars.githubusercontent.com/u/8966876?v=3","gravatar_id":"","url":"https://api.github.com/users/phuongbk","html_url":"https://github.com/phuongbk","followers_url":"https://api.github.com/users/phuongbk/followers","following_url":"https://api.github.com/users/phuongbk/following{/other_user}","gists_url":"https://api.github.com/users/phuongbk/gists{/gist_id}","starred_url":"https://api.github.com/users/phuongbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuongbk/subscriptions","organizations_url":"https://api.github.com/users/phuongbk/orgs","repos_url":"https://api.github.com/users/phuongbk/repos","events_url":"https://api.github.com/users/phuongbk/events{/privacy}","received_events_url":"https://api.github.com/users/phuongbk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phuongbk/phuongnd-laravel5-tutorial","description":"Laravel 5 tutorial for PhuongND","fork":true,"url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial","forks_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/forks","keys_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/teams","hooks_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/hooks","issue_events_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/events","assignees_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/tags","blobs_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/languages","stargazers_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/stargazers","contributors_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/contributors","subscribers_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/subscribers","subscription_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/subscription","commits_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/merges","archive_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/downloads","issues_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/labels{/name}","releases_url":"https://api.github.com/repos/phuongbk/phuongnd-laravel5-tutorial/releases{/id}","created_at":"2015-10-01T08:12:18Z","updated_at":"2015-10-01T08:12:19Z","pushed_at":"2015-10-13T01:31:53Z","git_url":"git://github.com/phuongbk/phuongnd-laravel5-tutorial.git","ssh_url":"git@github.com:phuongbk/phuongnd-laravel5-tutorial.git","clone_url":"https://github.com/phuongbk/phuongnd-laravel5-tutorial.git","svn_url":"https://github.com/phuongbk/phuongnd-laravel5-tutorial","homepage":null,"size":154,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"namnv609:develop","ref":"develop","sha":"54ef2b6985efd1abe8d742cd19fad1e10d91ae51","user":{"login":"namnv609","id":8691772,"avatar_url":"https://avatars.githubusercontent.com/u/8691772?v=3","gravatar_id":"","url":"https://api.github.com/users/namnv609","html_url":"https://github.com/namnv609","followers_url":"https://api.github.com/users/namnv609/followers","following_url":"https://api.github.com/users/namnv609/following{/other_user}","gists_url":"https://api.github.com/users/namnv609/gists{/gist_id}","starred_url":"https://api.github.com/users/namnv609/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namnv609/subscriptions","organizations_url":"https://api.github.com/users/namnv609/orgs","repos_url":"https://api.github.com/users/namnv609/repos","events_url":"https://api.github.com/users/namnv609/events{/privacy}","received_events_url":"https://api.github.com/users/namnv609/received_events","type":"User","site_admin":false},"repo":{"id":43472310,"name":"phuongnd-laravel5-tutorial","full_name":"namnv609/phuongnd-laravel5-tutorial","owner":{"login":"namnv609","id":8691772,"avatar_url":"https://avatars.githubusercontent.com/u/8691772?v=3","gravatar_id":"","url":"https://api.github.com/users/namnv609","html_url":"https://github.com/namnv609","followers_url":"https://api.github.com/users/namnv609/followers","following_url":"https://api.github.com/users/namnv609/following{/other_user}","gists_url":"https://api.github.com/users/namnv609/gists{/gist_id}","starred_url":"https://api.github.com/users/namnv609/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namnv609/subscriptions","organizations_url":"https://api.github.com/users/namnv609/orgs","repos_url":"https://api.github.com/users/namnv609/repos","events_url":"https://api.github.com/users/namnv609/events{/privacy}","received_events_url":"https://api.github.com/users/namnv609/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/namnv609/phuongnd-laravel5-tutorial","description":"Laravel 5 tutorial for PhuongND","fork":false,"url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial","forks_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/forks","keys_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/teams","hooks_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/hooks","issue_events_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/events","assignees_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/tags","blobs_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/languages","stargazers_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/stargazers","contributors_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/contributors","subscribers_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/subscribers","subscription_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/subscription","commits_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/merges","archive_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/downloads","issues_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/labels{/name}","releases_url":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/releases{/id}","created_at":"2015-10-01T01:23:16Z","updated_at":"2015-10-01T06:11:27Z","pushed_at":"2015-10-13T01:33:01Z","git_url":"git://github.com/namnv609/phuongnd-laravel5-tutorial.git","ssh_url":"git@github.com:namnv609/phuongnd-laravel5-tutorial.git","clone_url":"https://github.com/namnv609/phuongnd-laravel5-tutorial.git","svn_url":"https://github.com/namnv609/phuongnd-laravel5-tutorial","homepage":null,"size":299,"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/namnv609/phuongnd-laravel5-tutorial/pulls/5"},"html":{"href":"https://github.com/namnv609/phuongnd-laravel5-tutorial/pull/5"},"issue":{"href":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/issues/5"},"comments":{"href":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/namnv609/phuongnd-laravel5-tutorial/statuses/08cf387b755ff8585d00ed00519d8ee5f1441179"}}}}