{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_234/pulls/comments/103152331","pull_request_review_id":23929032,"id":103152331,"diff_hunk":"@@ -0,0 +1,68 @@\n+<?php\n+\n+namespace App\\Http\\Controllers;\n+\n+use Illuminate\\Http\\Request;\n+use App\\Models\\Category;\n+use App\\Models\\Learned;\n+use App\\Models\\Course;\n+use App\\Models\\Lesson;\n+use App\\Models\\User;\n+use App\\Models\\LessonWord;\n+use App\\Models\\WordAnswer;\n+use Auth;\n+\n+class CourseController extends Controller\n+{\n+    protected $lessonWord;\n+    protected $Learned;\n+    protected $WordAnswer;\n+\n+    public function __construct(\n+        LessonWord $lessonWord,\n+        Learned $learned,\n+        WordAnswer $wordAnswer,\n+        Lesson $lesson,\n+        Category $category\n+    ) {\n+        $this->lessonWord = $lessonWord;\n+        $this->learned = $learned;\n+        $this->wordAnswer = $wordAnswer;\n+        $this->lesson = $lesson;\n+        $this->category = $category;\n+    }\n+\n+    public function index($id = null)\n+    {\n+        if ($id == null) {\n+            $id = 1;\n+        }\n+\n+        $arCourse = $this->category->getCourse($id);\n+        $arTotal=[];","path":"app/Http/Controllers/CourseController.php","position":42,"original_position":42,"commit_id":"5d6c25bad520b8e85ad7e68aa44a067bb47fd979","original_commit_id":"5d6c25bad520b8e85ad7e68aa44a067bb47fd979","user":{"login":"at-diephq","id":10395607,"avatar_url":"https://avatars.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 rồi này ","created_at":"2017-02-27T08:11:58Z","updated_at":"2017-02-27T08:14:41Z","html_url":"https://github.com/framgia/fels_234/pull/22#discussion_r103152331","pull_request_url":"https://api.github.com/repos/framgia/fels_234/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_234/pulls/comments/103152331"},"html":{"href":"https://github.com/framgia/fels_234/pull/22#discussion_r103152331"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_234/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_234/pulls/22","id":108055106,"html_url":"https://github.com/framgia/fels_234/pull/22","diff_url":"https://github.com/framgia/fels_234/pull/22.diff","patch_url":"https://github.com/framgia/fels_234/pull/22.patch","issue_url":"https://api.github.com/repos/framgia/fels_234/issues/22","number":22,"state":"open","locked":false,"title":"Category Public","user":{"login":"tannguyenit","id":24540921,"avatar_url":"https://avatars.githubusercontent.com/u/24540921?v=3","gravatar_id":"","url":"https://api.github.com/users/tannguyenit","html_url":"https://github.com/tannguyenit","followers_url":"https://api.github.com/users/tannguyenit/followers","following_url":"https://api.github.com/users/tannguyenit/following{/other_user}","gists_url":"https://api.github.com/users/tannguyenit/gists{/gist_id}","starred_url":"https://api.github.com/users/tannguyenit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannguyenit/subscriptions","organizations_url":"https://api.github.com/users/tannguyenit/orgs","repos_url":"https://api.github.com/users/tannguyenit/repos","events_url":"https://api.github.com/users/tannguyenit/events{/privacy}","received_events_url":"https://api.github.com/users/tannguyenit/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-27T06:38:34Z","updated_at":"2017-02-27T08:14:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3585d8faa96011e370237cc1d1116a05c730c0ac","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_234/pulls/22/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_234/pulls/22/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_234/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_234/issues/22/comments","statuses_url":"https://api.github.com/repos/framgia/fels_234/statuses/5d6c25bad520b8e85ad7e68aa44a067bb47fd979","head":{"label":"tannguyenit:public","ref":"public","sha":"5d6c25bad520b8e85ad7e68aa44a067bb47fd979","user":{"login":"tannguyenit","id":24540921,"avatar_url":"https://avatars.githubusercontent.com/u/24540921?v=3","gravatar_id":"","url":"https://api.github.com/users/tannguyenit","html_url":"https://github.com/tannguyenit","followers_url":"https://api.github.com/users/tannguyenit/followers","following_url":"https://api.github.com/users/tannguyenit/following{/other_user}","gists_url":"https://api.github.com/users/tannguyenit/gists{/gist_id}","starred_url":"https://api.github.com/users/tannguyenit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannguyenit/subscriptions","organizations_url":"https://api.github.com/users/tannguyenit/orgs","repos_url":"https://api.github.com/users/tannguyenit/repos","events_url":"https://api.github.com/users/tannguyenit/events{/privacy}","received_events_url":"https://api.github.com/users/tannguyenit/received_events","type":"User","site_admin":false},"repo":{"id":81953150,"name":"fels_234","full_name":"tannguyenit/fels_234","owner":{"login":"tannguyenit","id":24540921,"avatar_url":"https://avatars.githubusercontent.com/u/24540921?v=3","gravatar_id":"","url":"https://api.github.com/users/tannguyenit","html_url":"https://github.com/tannguyenit","followers_url":"https://api.github.com/users/tannguyenit/followers","following_url":"https://api.github.com/users/tannguyenit/following{/other_user}","gists_url":"https://api.github.com/users/tannguyenit/gists{/gist_id}","starred_url":"https://api.github.com/users/tannguyenit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannguyenit/subscriptions","organizations_url":"https://api.github.com/users/tannguyenit/orgs","repos_url":"https://api.github.com/users/tannguyenit/repos","events_url":"https://api.github.com/users/tannguyenit/events{/privacy}","received_events_url":"https://api.github.com/users/tannguyenit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tannguyenit/fels_234","description":null,"fork":true,"url":"https://api.github.com/repos/tannguyenit/fels_234","forks_url":"https://api.github.com/repos/tannguyenit/fels_234/forks","keys_url":"https://api.github.com/repos/tannguyenit/fels_234/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tannguyenit/fels_234/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tannguyenit/fels_234/teams","hooks_url":"https://api.github.com/repos/tannguyenit/fels_234/hooks","issue_events_url":"https://api.github.com/repos/tannguyenit/fels_234/issues/events{/number}","events_url":"https://api.github.com/repos/tannguyenit/fels_234/events","assignees_url":"https://api.github.com/repos/tannguyenit/fels_234/assignees{/user}","branches_url":"https://api.github.com/repos/tannguyenit/fels_234/branches{/branch}","tags_url":"https://api.github.com/repos/tannguyenit/fels_234/tags","blobs_url":"https://api.github.com/repos/tannguyenit/fels_234/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tannguyenit/fels_234/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tannguyenit/fels_234/git/refs{/sha}","trees_url":"https://api.github.com/repos/tannguyenit/fels_234/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tannguyenit/fels_234/statuses/{sha}","languages_url":"https://api.github.com/repos/tannguyenit/fels_234/languages","stargazers_url":"https://api.github.com/repos/tannguyenit/fels_234/stargazers","contributors_url":"https://api.github.com/repos/tannguyenit/fels_234/contributors","subscribers_url":"https://api.github.com/repos/tannguyenit/fels_234/subscribers","subscription_url":"https://api.github.com/repos/tannguyenit/fels_234/subscription","commits_url":"https://api.github.com/repos/tannguyenit/fels_234/commits{/sha}","git_commits_url":"https://api.github.com/repos/tannguyenit/fels_234/git/commits{/sha}","comments_url":"https://api.github.com/repos/tannguyenit/fels_234/comments{/number}","issue_comment_url":"https://api.github.com/repos/tannguyenit/fels_234/issues/comments{/number}","contents_url":"https://api.github.com/repos/tannguyenit/fels_234/contents/{+path}","compare_url":"https://api.github.com/repos/tannguyenit/fels_234/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tannguyenit/fels_234/merges","archive_url":"https://api.github.com/repos/tannguyenit/fels_234/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tannguyenit/fels_234/downloads","issues_url":"https://api.github.com/repos/tannguyenit/fels_234/issues{/number}","pulls_url":"https://api.github.com/repos/tannguyenit/fels_234/pulls{/number}","milestones_url":"https://api.github.com/repos/tannguyenit/fels_234/milestones{/number}","notifications_url":"https://api.github.com/repos/tannguyenit/fels_234/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tannguyenit/fels_234/labels{/name}","releases_url":"https://api.github.com/repos/tannguyenit/fels_234/releases{/id}","deployments_url":"https://api.github.com/repos/tannguyenit/fels_234/deployments","created_at":"2017-02-14T14:24:53Z","updated_at":"2017-02-14T14:24:55Z","pushed_at":"2017-02-27T08:03:07Z","git_url":"git://github.com/tannguyenit/fels_234.git","ssh_url":"git@github.com:tannguyenit/fels_234.git","clone_url":"https://github.com/tannguyenit/fels_234.git","svn_url":"https://github.com/tannguyenit/fels_234","homepage":null,"size":461,"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":"framgia:develop","ref":"develop","sha":"8ed184f20e2f965ce03611df7e96038fa67f1b2e","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":81514416,"name":"fels_234","full_name":"framgia/fels_234","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/fels_234","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/fels_234","forks_url":"https://api.github.com/repos/framgia/fels_234/forks","keys_url":"https://api.github.com/repos/framgia/fels_234/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_234/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_234/teams","hooks_url":"https://api.github.com/repos/framgia/fels_234/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_234/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_234/events","assignees_url":"https://api.github.com/repos/framgia/fels_234/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_234/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_234/tags","blobs_url":"https://api.github.com/repos/framgia/fels_234/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_234/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_234/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_234/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_234/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_234/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_234/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_234/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_234/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_234/subscription","commits_url":"https://api.github.com/repos/framgia/fels_234/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_234/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_234/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_234/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_234/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_234/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_234/merges","archive_url":"https://api.github.com/repos/framgia/fels_234/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_234/downloads","issues_url":"https://api.github.com/repos/framgia/fels_234/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_234/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_234/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_234/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_234/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_234/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_234/deployments","created_at":"2017-02-10T01:49:09Z","updated_at":"2017-02-10T09:51:48Z","pushed_at":"2017-02-27T08:03:09Z","git_url":"git://github.com/framgia/fels_234.git","ssh_url":"git@github.com:framgia/fels_234.git","clone_url":"https://github.com/framgia/fels_234.git","svn_url":"https://github.com/framgia/fels_234","homepage":null,"size":436,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_234/pulls/22"},"html":{"href":"https://github.com/framgia/fels_234/pull/22"},"issue":{"href":"https://api.github.com/repos/framgia/fels_234/issues/22"},"comments":{"href":"https://api.github.com/repos/framgia/fels_234/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_234/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_234/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_234/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_234/statuses/5d6c25bad520b8e85ad7e68aa44a067bb47fd979"}}}}
{"actor":{"display_login":"at-diephq"}}