{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/comments/154278336","pull_request_review_id":80417059,"id":154278336,"diff_hunk":"@@ -27,4 +29,19 @@ public function albumDetails()\n   {\n       return $this->hasMany(AlbumDetail::Class);\n   }\n+\n+  public function getAlbumPath()\n+  {\n+      return asset(config('custom.image_source.album') . $this->attributes['image_cover']);\n+  }\n+\n+  public static function storingAlbumImage(AlbumRequest $request)\n+  {\n+      if (isset($request['image_cover'])) {\n+          $file = Input::file('image_cover');\n+          $name = time() . '_' . $file->getClientOriginalName();\n+          $file->move(\"upload/album\", $name);\n+          return $name;\n+      }","path":"app/Models/Album.php","position":26,"original_position":26,"commit_id":"05fe8fca6f968ceeded6e975d8de76223791587f","original_commit_id":"05fe8fca6f968ceeded6e975d8de76223791587f","user":{"login":"sandwraith7495","id":22113559,"avatar_url":"https://avatars1.githubusercontent.com/u/22113559?v=4","gravatar_id":"","url":"https://api.github.com/users/sandwraith7495","html_url":"https://github.com/sandwraith7495","followers_url":"https://api.github.com/users/sandwraith7495/followers","following_url":"https://api.github.com/users/sandwraith7495/following{/other_user}","gists_url":"https://api.github.com/users/sandwraith7495/gists{/gist_id}","starred_url":"https://api.github.com/users/sandwraith7495/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandwraith7495/subscriptions","organizations_url":"https://api.github.com/users/sandwraith7495/orgs","repos_url":"https://api.github.com/users/sandwraith7495/repos","events_url":"https://api.github.com/users/sandwraith7495/events{/privacy}","received_events_url":"https://api.github.com/users/sandwraith7495/received_events","type":"User","site_admin":false},"body":"dạ phần này thì để về sau em nghiên cứu thêm ạ","created_at":"2017-12-01T06:54:37Z","updated_at":"2017-12-01T06:54:37Z","html_url":"https://github.com/framgia/framgia_imusic_02/pull/15#discussion_r154278336","pull_request_url":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/15","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/comments/154278336"},"html":{"href":"https://github.com/framgia/framgia_imusic_02/pull/15#discussion_r154278336"},"pull_request":{"href":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/15"}},"in_reply_to_id":154276950},"pull_request":{"url":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/15","id":155277387,"html_url":"https://github.com/framgia/framgia_imusic_02/pull/15","diff_url":"https://github.com/framgia/framgia_imusic_02/pull/15.diff","patch_url":"https://github.com/framgia/framgia_imusic_02/pull/15.patch","issue_url":"https://api.github.com/repos/framgia/framgia_imusic_02/issues/15","number":15,"state":"open","locked":false,"title":"Admin authenticate","user":{"login":"sandwraith7495","id":22113559,"avatar_url":"https://avatars1.githubusercontent.com/u/22113559?v=4","gravatar_id":"","url":"https://api.github.com/users/sandwraith7495","html_url":"https://github.com/sandwraith7495","followers_url":"https://api.github.com/users/sandwraith7495/followers","following_url":"https://api.github.com/users/sandwraith7495/following{/other_user}","gists_url":"https://api.github.com/users/sandwraith7495/gists{/gist_id}","starred_url":"https://api.github.com/users/sandwraith7495/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandwraith7495/subscriptions","organizations_url":"https://api.github.com/users/sandwraith7495/orgs","repos_url":"https://api.github.com/users/sandwraith7495/repos","events_url":"https://api.github.com/users/sandwraith7495/events{/privacy}","received_events_url":"https://api.github.com/users/sandwraith7495/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-29T08:35:39Z","updated_at":"2017-12-01T06:54:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11bfcd35de43c65f19c9c683a14f8621e6e71ffd","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/15/commits","review_comments_url":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/15/comments","review_comment_url":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/framgia_imusic_02/issues/15/comments","statuses_url":"https://api.github.com/repos/framgia/framgia_imusic_02/statuses/05fe8fca6f968ceeded6e975d8de76223791587f","head":{"label":"sandwraith7495:admin_authenticate","ref":"admin_authenticate","sha":"05fe8fca6f968ceeded6e975d8de76223791587f","user":{"login":"sandwraith7495","id":22113559,"avatar_url":"https://avatars1.githubusercontent.com/u/22113559?v=4","gravatar_id":"","url":"https://api.github.com/users/sandwraith7495","html_url":"https://github.com/sandwraith7495","followers_url":"https://api.github.com/users/sandwraith7495/followers","following_url":"https://api.github.com/users/sandwraith7495/following{/other_user}","gists_url":"https://api.github.com/users/sandwraith7495/gists{/gist_id}","starred_url":"https://api.github.com/users/sandwraith7495/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandwraith7495/subscriptions","organizations_url":"https://api.github.com/users/sandwraith7495/orgs","repos_url":"https://api.github.com/users/sandwraith7495/repos","events_url":"https://api.github.com/users/sandwraith7495/events{/privacy}","received_events_url":"https://api.github.com/users/sandwraith7495/received_events","type":"User","site_admin":false},"repo":{"id":110082698,"name":"framgia_imusic_02","full_name":"sandwraith7495/framgia_imusic_02","owner":{"login":"sandwraith7495","id":22113559,"avatar_url":"https://avatars1.githubusercontent.com/u/22113559?v=4","gravatar_id":"","url":"https://api.github.com/users/sandwraith7495","html_url":"https://github.com/sandwraith7495","followers_url":"https://api.github.com/users/sandwraith7495/followers","following_url":"https://api.github.com/users/sandwraith7495/following{/other_user}","gists_url":"https://api.github.com/users/sandwraith7495/gists{/gist_id}","starred_url":"https://api.github.com/users/sandwraith7495/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandwraith7495/subscriptions","organizations_url":"https://api.github.com/users/sandwraith7495/orgs","repos_url":"https://api.github.com/users/sandwraith7495/repos","events_url":"https://api.github.com/users/sandwraith7495/events{/privacy}","received_events_url":"https://api.github.com/users/sandwraith7495/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sandwraith7495/framgia_imusic_02","description":"framgia_imusic_02 (Training)","fork":true,"url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02","forks_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/forks","keys_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/teams","hooks_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/hooks","issue_events_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/issues/events{/number}","events_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/events","assignees_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/assignees{/user}","branches_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/branches{/branch}","tags_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/tags","blobs_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/statuses/{sha}","languages_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/languages","stargazers_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/stargazers","contributors_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/contributors","subscribers_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/subscribers","subscription_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/subscription","commits_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/contents/{+path}","compare_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/merges","archive_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/downloads","issues_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/issues{/number}","pulls_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/pulls{/number}","milestones_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/milestones{/number}","notifications_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/labels{/name}","releases_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/releases{/id}","deployments_url":"https://api.github.com/repos/sandwraith7495/framgia_imusic_02/deployments","created_at":"2017-11-09T07:34:40Z","updated_at":"2017-11-07T02:17:46Z","pushed_at":"2017-12-01T06:35:50Z","git_url":"git://github.com/sandwraith7495/framgia_imusic_02.git","ssh_url":"git@github.com:sandwraith7495/framgia_imusic_02.git","clone_url":"https://github.com/sandwraith7495/framgia_imusic_02.git","svn_url":"https://github.com/sandwraith7495/framgia_imusic_02","homepage":null,"size":240,"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,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"f021dc11a72a996fd66137164cd7a2b2a5cec775","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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":109775384,"name":"framgia_imusic_02","full_name":"framgia/framgia_imusic_02","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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/framgia_imusic_02","description":"framgia_imusic_02 (Training)","fork":false,"url":"https://api.github.com/repos/framgia/framgia_imusic_02","forks_url":"https://api.github.com/repos/framgia/framgia_imusic_02/forks","keys_url":"https://api.github.com/repos/framgia/framgia_imusic_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/framgia_imusic_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/framgia_imusic_02/teams","hooks_url":"https://api.github.com/repos/framgia/framgia_imusic_02/hooks","issue_events_url":"https://api.github.com/repos/framgia/framgia_imusic_02/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/framgia_imusic_02/events","assignees_url":"https://api.github.com/repos/framgia/framgia_imusic_02/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/framgia_imusic_02/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/framgia_imusic_02/tags","blobs_url":"https://api.github.com/repos/framgia/framgia_imusic_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/framgia_imusic_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/framgia_imusic_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/framgia_imusic_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/framgia_imusic_02/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/framgia_imusic_02/languages","stargazers_url":"https://api.github.com/repos/framgia/framgia_imusic_02/stargazers","contributors_url":"https://api.github.com/repos/framgia/framgia_imusic_02/contributors","subscribers_url":"https://api.github.com/repos/framgia/framgia_imusic_02/subscribers","subscription_url":"https://api.github.com/repos/framgia/framgia_imusic_02/subscription","commits_url":"https://api.github.com/repos/framgia/framgia_imusic_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/framgia_imusic_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/framgia_imusic_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/framgia_imusic_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/framgia_imusic_02/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/framgia_imusic_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/framgia_imusic_02/merges","archive_url":"https://api.github.com/repos/framgia/framgia_imusic_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/framgia_imusic_02/downloads","issues_url":"https://api.github.com/repos/framgia/framgia_imusic_02/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/framgia_imusic_02/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/framgia_imusic_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/framgia_imusic_02/labels{/name}","releases_url":"https://api.github.com/repos/framgia/framgia_imusic_02/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/framgia_imusic_02/deployments","created_at":"2017-11-07T02:17:46Z","updated_at":"2017-11-07T02:17:46Z","pushed_at":"2017-12-01T06:35:51Z","git_url":"git://github.com/framgia/framgia_imusic_02.git","ssh_url":"git@github.com:framgia/framgia_imusic_02.git","clone_url":"https://github.com/framgia/framgia_imusic_02.git","svn_url":"https://github.com/framgia/framgia_imusic_02","homepage":null,"size":237,"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":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/15"},"html":{"href":"https://github.com/framgia/framgia_imusic_02/pull/15"},"issue":{"href":"https://api.github.com/repos/framgia/framgia_imusic_02/issues/15"},"comments":{"href":"https://api.github.com/repos/framgia/framgia_imusic_02/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/framgia_imusic_02/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/framgia_imusic_02/statuses/05fe8fca6f968ceeded6e975d8de76223791587f"}},"author_association":"NONE"}}
{"actor":{"display_login":"sandwraith7495"}}