{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/training_blog_6/pulls/comments/77468834","id":77468834,"diff_hunk":"@@ -105,6 +109,14 @@ public function update(Request $request, $id)\n      */\n     public function destroy($id)\n     {\n-        //\n+        $category = Category::find($id);\n+        $result = $category->delete();\n+        if ($result) {\n+            return redirect()->action('CategoriesController@index')->with('messages', 'Delete category successful.');\n+        }\n+        return redirect()->action('CategoriesController@index')","path":"app/Http/Controllers/CategoriesController.php","position":32,"original_position":32,"commit_id":"16872b6aa45b4d50254d751a36b9c5f2695065cf","original_commit_id":"16872b6aa45b4d50254d751a36b9c5f2695065cf","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":"cần có 1 dòng trống trước đoạn này","created_at":"2016-09-05T04:06:30Z","updated_at":"2016-09-05T04:06:30Z","html_url":"https://github.com/framgia/training_blog_6/pull/7#discussion_r77468834","pull_request_url":"https://api.github.com/repos/framgia/training_blog_6/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/framgia/training_blog_6/pulls/comments/77468834"},"html":{"href":"https://github.com/framgia/training_blog_6/pull/7#discussion_r77468834"},"pull_request":{"href":"https://api.github.com/repos/framgia/training_blog_6/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/training_blog_6/pulls/7","id":83947745,"html_url":"https://github.com/framgia/training_blog_6/pull/7","diff_url":"https://github.com/framgia/training_blog_6/pull/7.diff","patch_url":"https://github.com/framgia/training_blog_6/pull/7.patch","issue_url":"https://api.github.com/repos/framgia/training_blog_6/issues/7","number":7,"state":"open","locked":false,"title":"Admin Task Category Manage","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":"Task quản lý category trong admin","created_at":"2016-09-05T04:02:30Z","updated_at":"2016-09-05T04:06:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e05653b6372dd6ef36ba5e971d43258dd574073","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/training_blog_6/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framgia/training_blog_6/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framgia/training_blog_6/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/training_blog_6/issues/7/comments","statuses_url":"https://api.github.com/repos/framgia/training_blog_6/statuses/16872b6aa45b4d50254d751a36b9c5f2695065cf","head":{"label":"thandongtb:manageCategory","ref":"manageCategory","sha":"16872b6aa45b4d50254d751a36b9c5f2695065cf","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":66928584,"name":"training_blog_6","full_name":"thandongtb/training_blog_6","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/training_blog_6","description":"Blog Training","fork":true,"url":"https://api.github.com/repos/thandongtb/training_blog_6","forks_url":"https://api.github.com/repos/thandongtb/training_blog_6/forks","keys_url":"https://api.github.com/repos/thandongtb/training_blog_6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thandongtb/training_blog_6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thandongtb/training_blog_6/teams","hooks_url":"https://api.github.com/repos/thandongtb/training_blog_6/hooks","issue_events_url":"https://api.github.com/repos/thandongtb/training_blog_6/issues/events{/number}","events_url":"https://api.github.com/repos/thandongtb/training_blog_6/events","assignees_url":"https://api.github.com/repos/thandongtb/training_blog_6/assignees{/user}","branches_url":"https://api.github.com/repos/thandongtb/training_blog_6/branches{/branch}","tags_url":"https://api.github.com/repos/thandongtb/training_blog_6/tags","blobs_url":"https://api.github.com/repos/thandongtb/training_blog_6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thandongtb/training_blog_6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thandongtb/training_blog_6/git/refs{/sha}","trees_url":"https://api.github.com/repos/thandongtb/training_blog_6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thandongtb/training_blog_6/statuses/{sha}","languages_url":"https://api.github.com/repos/thandongtb/training_blog_6/languages","stargazers_url":"https://api.github.com/repos/thandongtb/training_blog_6/stargazers","contributors_url":"https://api.github.com/repos/thandongtb/training_blog_6/contributors","subscribers_url":"https://api.github.com/repos/thandongtb/training_blog_6/subscribers","subscription_url":"https://api.github.com/repos/thandongtb/training_blog_6/subscription","commits_url":"https://api.github.com/repos/thandongtb/training_blog_6/commits{/sha}","git_commits_url":"https://api.github.com/repos/thandongtb/training_blog_6/git/commits{/sha}","comments_url":"https://api.github.com/repos/thandongtb/training_blog_6/comments{/number}","issue_comment_url":"https://api.github.com/repos/thandongtb/training_blog_6/issues/comments{/number}","contents_url":"https://api.github.com/repos/thandongtb/training_blog_6/contents/{+path}","compare_url":"https://api.github.com/repos/thandongtb/training_blog_6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thandongtb/training_blog_6/merges","archive_url":"https://api.github.com/repos/thandongtb/training_blog_6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thandongtb/training_blog_6/downloads","issues_url":"https://api.github.com/repos/thandongtb/training_blog_6/issues{/number}","pulls_url":"https://api.github.com/repos/thandongtb/training_blog_6/pulls{/number}","milestones_url":"https://api.github.com/repos/thandongtb/training_blog_6/milestones{/number}","notifications_url":"https://api.github.com/repos/thandongtb/training_blog_6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thandongtb/training_blog_6/labels{/name}","releases_url":"https://api.github.com/repos/thandongtb/training_blog_6/releases{/id}","deployments_url":"https://api.github.com/repos/thandongtb/training_blog_6/deployments","created_at":"2016-08-30T09:53:32Z","updated_at":"2016-08-30T03:02:30Z","pushed_at":"2016-09-05T04:01:39Z","git_url":"git://github.com/thandongtb/training_blog_6.git","ssh_url":"git@github.com:thandongtb/training_blog_6.git","clone_url":"https://github.com/thandongtb/training_blog_6.git","svn_url":"https://github.com/thandongtb/training_blog_6","homepage":null,"size":68,"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":"a3b90fe6ed46a4393ab9e7239aff142d43a2a12e","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":66901362,"name":"training_blog_6","full_name":"framgia/training_blog_6","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/training_blog_6","description":"Blog Training","fork":false,"url":"https://api.github.com/repos/framgia/training_blog_6","forks_url":"https://api.github.com/repos/framgia/training_blog_6/forks","keys_url":"https://api.github.com/repos/framgia/training_blog_6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/training_blog_6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/training_blog_6/teams","hooks_url":"https://api.github.com/repos/framgia/training_blog_6/hooks","issue_events_url":"https://api.github.com/repos/framgia/training_blog_6/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/training_blog_6/events","assignees_url":"https://api.github.com/repos/framgia/training_blog_6/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/training_blog_6/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/training_blog_6/tags","blobs_url":"https://api.github.com/repos/framgia/training_blog_6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/training_blog_6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/training_blog_6/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/training_blog_6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/training_blog_6/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/training_blog_6/languages","stargazers_url":"https://api.github.com/repos/framgia/training_blog_6/stargazers","contributors_url":"https://api.github.com/repos/framgia/training_blog_6/contributors","subscribers_url":"https://api.github.com/repos/framgia/training_blog_6/subscribers","subscription_url":"https://api.github.com/repos/framgia/training_blog_6/subscription","commits_url":"https://api.github.com/repos/framgia/training_blog_6/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/training_blog_6/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/training_blog_6/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/training_blog_6/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/training_blog_6/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/training_blog_6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/training_blog_6/merges","archive_url":"https://api.github.com/repos/framgia/training_blog_6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/training_blog_6/downloads","issues_url":"https://api.github.com/repos/framgia/training_blog_6/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/training_blog_6/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/training_blog_6/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/training_blog_6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/training_blog_6/labels{/name}","releases_url":"https://api.github.com/repos/framgia/training_blog_6/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/training_blog_6/deployments","created_at":"2016-08-30T03:02:30Z","updated_at":"2016-08-30T03:02:30Z","pushed_at":"2016-09-05T04:02:30Z","git_url":"git://github.com/framgia/training_blog_6.git","ssh_url":"git@github.com:framgia/training_blog_6.git","clone_url":"https://github.com/framgia/training_blog_6.git","svn_url":"https://github.com/framgia/training_blog_6","homepage":null,"size":69,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/training_blog_6/pulls/7"},"html":{"href":"https://github.com/framgia/training_blog_6/pull/7"},"issue":{"href":"https://api.github.com/repos/framgia/training_blog_6/issues/7"},"comments":{"href":"https://api.github.com/repos/framgia/training_blog_6/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/training_blog_6/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/training_blog_6/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/training_blog_6/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/training_blog_6/statuses/16872b6aa45b4d50254d751a36b9c5f2695065cf"}}}}
{"actor":{"display_login":"NgTheThao"}}