{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/votingsys_01/pulls/comments/84615063","pull_request_review_id":5381257,"id":84615063,"diff_hunk":"@@ -0,0 +1,120 @@\n+<?php\n+\n+namespace App\\Http\\Controllers\\Admin;\n+\n+use App\\Http\\Controllers\\Controller;\n+use App\\Models\\Poll;\n+use App\\Repositories\\Poll\\PollRepositoryInterface;\n+use Illuminate\\Http\\Request;\n+use App\\Http\\Requests\\PollRequest;\n+\n+class PollController extends Controller\n+{\n+    private $pollRepository;\n+\n+    public function __construct(PollRepositoryInterface $pollRepository)\n+    {\n+        $this->pollRepository = $pollRepository;\n+    }\n+    /**\n+     * Display a listing of the resource.\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function index()\n+    {\n+        //\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+        $data = json_encode([\n+            'message' => [\n+                'numberOfOptions' => config('settings.length_poll.option'),\n+                'config' => [\n+                    'invite_all' => config('settings.participant.invite_all'),\n+                    'invite_people' => config('settings.participant.invite_people'),\n+                ],\n+            ],\n+            'view' => [\n+                'option' => view('layouts.poll-option')->render(),\n+                'email' => view('layouts.poll-email')->render(),\n+            ],\n+            'oldInput' => session(\"_old_input\"),","path":"app/Http/Controllers/Admin/PollController.php","position":48,"original_position":48,"commit_id":"48dc7daa3cd68ddf928b76c8073d781ceee07830","original_commit_id":"48dc7daa3cd68ddf928b76c8073d781ceee07830","user":{"login":"nguyenthanhtung88","id":11342207,"avatar_url":"https://avatars.githubusercontent.com/u/11342207?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenthanhtung88","html_url":"https://github.com/nguyenthanhtung88","followers_url":"https://api.github.com/users/nguyenthanhtung88/followers","following_url":"https://api.github.com/users/nguyenthanhtung88/following{/other_user}","gists_url":"https://api.github.com/users/nguyenthanhtung88/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenthanhtung88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenthanhtung88/subscriptions","organizations_url":"https://api.github.com/users/nguyenthanhtung88/orgs","repos_url":"https://api.github.com/users/nguyenthanhtung88/repos","events_url":"https://api.github.com/users/nguyenthanhtung88/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenthanhtung88/received_events","type":"User","site_admin":false},"body":"Nếu chỉ string thì dùng nháy đơn thôi nhé","created_at":"2016-10-24T02:49:27Z","updated_at":"2016-10-24T02:49:27Z","html_url":"https://github.com/framgia/votingsys_01/pull/7#discussion_r84615063","pull_request_url":"https://api.github.com/repos/framgia/votingsys_01/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/framgia/votingsys_01/pulls/comments/84615063"},"html":{"href":"https://github.com/framgia/votingsys_01/pull/7#discussion_r84615063"},"pull_request":{"href":"https://api.github.com/repos/framgia/votingsys_01/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/votingsys_01/pulls/7","id":90354896,"html_url":"https://github.com/framgia/votingsys_01/pull/7","diff_url":"https://github.com/framgia/votingsys_01/pull/7.diff","patch_url":"https://github.com/framgia/votingsys_01/pull/7.patch","issue_url":"https://api.github.com/repos/framgia/votingsys_01/issues/7","number":7,"state":"open","locked":false,"title":"Task 82905: Admin create a poll","user":{"login":"hoquochai","id":13618718,"avatar_url":"https://avatars.githubusercontent.com/u/13618718?v=3","gravatar_id":"","url":"https://api.github.com/users/hoquochai","html_url":"https://github.com/hoquochai","followers_url":"https://api.github.com/users/hoquochai/followers","following_url":"https://api.github.com/users/hoquochai/following{/other_user}","gists_url":"https://api.github.com/users/hoquochai/gists{/gist_id}","starred_url":"https://api.github.com/users/hoquochai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoquochai/subscriptions","organizations_url":"https://api.github.com/users/hoquochai/orgs","repos_url":"https://api.github.com/users/hoquochai/repos","events_url":"https://api.github.com/users/hoquochai/events{/privacy}","received_events_url":"https://api.github.com/users/hoquochai/received_events","type":"User","site_admin":false},"body":"Task 82905: Admin create a poll","created_at":"2016-10-21T09:55:56Z","updated_at":"2016-10-24T02:49:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"246c4262a919daab20ee78735a2f45f676d9c084","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/votingsys_01/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framgia/votingsys_01/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framgia/votingsys_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/votingsys_01/issues/7/comments","statuses_url":"https://api.github.com/repos/framgia/votingsys_01/statuses/48dc7daa3cd68ddf928b76c8073d781ceee07830","head":{"label":"hoquochai:82905_Admin_Create_Poll","ref":"82905_Admin_Create_Poll","sha":"48dc7daa3cd68ddf928b76c8073d781ceee07830","user":{"login":"hoquochai","id":13618718,"avatar_url":"https://avatars.githubusercontent.com/u/13618718?v=3","gravatar_id":"","url":"https://api.github.com/users/hoquochai","html_url":"https://github.com/hoquochai","followers_url":"https://api.github.com/users/hoquochai/followers","following_url":"https://api.github.com/users/hoquochai/following{/other_user}","gists_url":"https://api.github.com/users/hoquochai/gists{/gist_id}","starred_url":"https://api.github.com/users/hoquochai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoquochai/subscriptions","organizations_url":"https://api.github.com/users/hoquochai/orgs","repos_url":"https://api.github.com/users/hoquochai/repos","events_url":"https://api.github.com/users/hoquochai/events{/privacy}","received_events_url":"https://api.github.com/users/hoquochai/received_events","type":"User","site_admin":false},"repo":{"id":71202547,"name":"votingsys_01","full_name":"hoquochai/votingsys_01","owner":{"login":"hoquochai","id":13618718,"avatar_url":"https://avatars.githubusercontent.com/u/13618718?v=3","gravatar_id":"","url":"https://api.github.com/users/hoquochai","html_url":"https://github.com/hoquochai","followers_url":"https://api.github.com/users/hoquochai/followers","following_url":"https://api.github.com/users/hoquochai/following{/other_user}","gists_url":"https://api.github.com/users/hoquochai/gists{/gist_id}","starred_url":"https://api.github.com/users/hoquochai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoquochai/subscriptions","organizations_url":"https://api.github.com/users/hoquochai/orgs","repos_url":"https://api.github.com/users/hoquochai/repos","events_url":"https://api.github.com/users/hoquochai/events{/privacy}","received_events_url":"https://api.github.com/users/hoquochai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hoquochai/votingsys_01","description":"Framgia Edu DN - Training Project","fork":true,"url":"https://api.github.com/repos/hoquochai/votingsys_01","forks_url":"https://api.github.com/repos/hoquochai/votingsys_01/forks","keys_url":"https://api.github.com/repos/hoquochai/votingsys_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoquochai/votingsys_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoquochai/votingsys_01/teams","hooks_url":"https://api.github.com/repos/hoquochai/votingsys_01/hooks","issue_events_url":"https://api.github.com/repos/hoquochai/votingsys_01/issues/events{/number}","events_url":"https://api.github.com/repos/hoquochai/votingsys_01/events","assignees_url":"https://api.github.com/repos/hoquochai/votingsys_01/assignees{/user}","branches_url":"https://api.github.com/repos/hoquochai/votingsys_01/branches{/branch}","tags_url":"https://api.github.com/repos/hoquochai/votingsys_01/tags","blobs_url":"https://api.github.com/repos/hoquochai/votingsys_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoquochai/votingsys_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoquochai/votingsys_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoquochai/votingsys_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoquochai/votingsys_01/statuses/{sha}","languages_url":"https://api.github.com/repos/hoquochai/votingsys_01/languages","stargazers_url":"https://api.github.com/repos/hoquochai/votingsys_01/stargazers","contributors_url":"https://api.github.com/repos/hoquochai/votingsys_01/contributors","subscribers_url":"https://api.github.com/repos/hoquochai/votingsys_01/subscribers","subscription_url":"https://api.github.com/repos/hoquochai/votingsys_01/subscription","commits_url":"https://api.github.com/repos/hoquochai/votingsys_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoquochai/votingsys_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoquochai/votingsys_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoquochai/votingsys_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoquochai/votingsys_01/contents/{+path}","compare_url":"https://api.github.com/repos/hoquochai/votingsys_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoquochai/votingsys_01/merges","archive_url":"https://api.github.com/repos/hoquochai/votingsys_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoquochai/votingsys_01/downloads","issues_url":"https://api.github.com/repos/hoquochai/votingsys_01/issues{/number}","pulls_url":"https://api.github.com/repos/hoquochai/votingsys_01/pulls{/number}","milestones_url":"https://api.github.com/repos/hoquochai/votingsys_01/milestones{/number}","notifications_url":"https://api.github.com/repos/hoquochai/votingsys_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoquochai/votingsys_01/labels{/name}","releases_url":"https://api.github.com/repos/hoquochai/votingsys_01/releases{/id}","deployments_url":"https://api.github.com/repos/hoquochai/votingsys_01/deployments","created_at":"2016-10-18T02:48:47Z","updated_at":"2016-10-14T03:44:09Z","pushed_at":"2016-10-21T10:04:39Z","git_url":"git://github.com/hoquochai/votingsys_01.git","ssh_url":"git@github.com:hoquochai/votingsys_01.git","clone_url":"https://github.com/hoquochai/votingsys_01.git","svn_url":"https://github.com/hoquochai/votingsys_01","homepage":null,"size":231,"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":"15fb8c6f5cf93b917b77365fe673f321278284db","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":70871698,"name":"votingsys_01","full_name":"framgia/votingsys_01","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/votingsys_01","description":"Framgia Edu DN - Training Project","fork":false,"url":"https://api.github.com/repos/framgia/votingsys_01","forks_url":"https://api.github.com/repos/framgia/votingsys_01/forks","keys_url":"https://api.github.com/repos/framgia/votingsys_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/votingsys_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/votingsys_01/teams","hooks_url":"https://api.github.com/repos/framgia/votingsys_01/hooks","issue_events_url":"https://api.github.com/repos/framgia/votingsys_01/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/votingsys_01/events","assignees_url":"https://api.github.com/repos/framgia/votingsys_01/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/votingsys_01/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/votingsys_01/tags","blobs_url":"https://api.github.com/repos/framgia/votingsys_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/votingsys_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/votingsys_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/votingsys_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/votingsys_01/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/votingsys_01/languages","stargazers_url":"https://api.github.com/repos/framgia/votingsys_01/stargazers","contributors_url":"https://api.github.com/repos/framgia/votingsys_01/contributors","subscribers_url":"https://api.github.com/repos/framgia/votingsys_01/subscribers","subscription_url":"https://api.github.com/repos/framgia/votingsys_01/subscription","commits_url":"https://api.github.com/repos/framgia/votingsys_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/votingsys_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/votingsys_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/votingsys_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/votingsys_01/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/votingsys_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/votingsys_01/merges","archive_url":"https://api.github.com/repos/framgia/votingsys_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/votingsys_01/downloads","issues_url":"https://api.github.com/repos/framgia/votingsys_01/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/votingsys_01/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/votingsys_01/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/votingsys_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/votingsys_01/labels{/name}","releases_url":"https://api.github.com/repos/framgia/votingsys_01/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/votingsys_01/deployments","created_at":"2016-10-14T03:44:09Z","updated_at":"2016-10-14T03:44:09Z","pushed_at":"2016-10-21T10:04:39Z","git_url":"git://github.com/framgia/votingsys_01.git","ssh_url":"git@github.com:framgia/votingsys_01.git","clone_url":"https://github.com/framgia/votingsys_01.git","svn_url":"https://github.com/framgia/votingsys_01","homepage":null,"size":232,"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/votingsys_01/pulls/7"},"html":{"href":"https://github.com/framgia/votingsys_01/pull/7"},"issue":{"href":"https://api.github.com/repos/framgia/votingsys_01/issues/7"},"comments":{"href":"https://api.github.com/repos/framgia/votingsys_01/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/votingsys_01/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/votingsys_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/votingsys_01/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/votingsys_01/statuses/48dc7daa3cd68ddf928b76c8073d781ceee07830"}}}}
{"actor":{"display_login":"nguyenthanhtung88"}}