{"action":"created","comment":{"url":"https://api.github.com/repos/cachethq/Cachet/pulls/comments/34202007","id":34202007,"diff_hunk":"@@ -0,0 +1,118 @@\n+<?php\n+\n+/*\n+ * This file is part of Cachet.\n+ *\n+ * (c) Alt Three Services Limited\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace CachetHQ\\Cachet\\Http\\Controllers\\Admin;\n+\n+use CachetHQ\\Cachet\\Events\\CustomerHasSubscribedEvent;\n+use CachetHQ\\Cachet\\Http\\Controllers\\AbstractController;\n+use CachetHQ\\Cachet\\Models\\Subscriber;\n+use GrahamCampbell\\Binput\\Facades\\Binput;\n+use Illuminate\\Support\\Facades\\Redirect;\n+use Illuminate\\Support\\Facades\\View;\n+\n+class SubscriberController extends AbstractController\n+{\n+    /**\n+     * Shows the subscribers view.\n+     *\n+     * @return \\Illuminate\\View\\View\n+     */\n+    public function showSubscribers()\n+    {\n+        $subscribers = Subscriber::all();\n+\n+        return View::make('dashboard.subscribers.index')\n+            ->with([\n+                'page_title'   => trans('dashboard.subscribers.subscribers').' - '.trans('dashboard.dashboard'),\n+                'subscribers'  => $subscribers,","path":"app/Http/Controllers/Admin/SubscriberController.php","position":35,"original_position":35,"commit_id":"1ca423cee6835d28ccccfac64dd2e9b6bdfa498e","original_commit_id":"1ca423cee6835d28ccccfac64dd2e9b6bdfa498e","user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"body":"too much indentation","created_at":"2015-07-08T21:40:07Z","updated_at":"2015-07-08T21:40:07Z","html_url":"https://github.com/cachethq/Cachet/pull/776#discussion_r34202007","pull_request_url":"https://api.github.com/repos/cachethq/Cachet/pulls/776","_links":{"self":{"href":"https://api.github.com/repos/cachethq/Cachet/pulls/comments/34202007"},"html":{"href":"https://github.com/cachethq/Cachet/pull/776#discussion_r34202007"},"pull_request":{"href":"https://api.github.com/repos/cachethq/Cachet/pulls/776"}}},"pull_request":{"url":"https://api.github.com/repos/cachethq/Cachet/pulls/776","id":38902678,"html_url":"https://github.com/cachethq/Cachet/pull/776","diff_url":"https://github.com/cachethq/Cachet/pull/776.diff","patch_url":"https://github.com/cachethq/Cachet/pull/776.patch","issue_url":"https://api.github.com/repos/cachethq/Cachet/issues/776","number":776,"state":"open","locked":false,"title":"Subscriber Administration","user":{"login":"chaseconey","id":1449463,"avatar_url":"https://avatars.githubusercontent.com/u/1449463?v=3","gravatar_id":"","url":"https://api.github.com/users/chaseconey","html_url":"https://github.com/chaseconey","followers_url":"https://api.github.com/users/chaseconey/followers","following_url":"https://api.github.com/users/chaseconey/following{/other_user}","gists_url":"https://api.github.com/users/chaseconey/gists{/gist_id}","starred_url":"https://api.github.com/users/chaseconey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaseconey/subscriptions","organizations_url":"https://api.github.com/users/chaseconey/orgs","repos_url":"https://api.github.com/users/chaseconey/repos","events_url":"https://api.github.com/users/chaseconey/events{/privacy}","received_events_url":"https://api.github.com/users/chaseconey/received_events","type":"User","site_admin":false},"body":"Completes #759.\r\n\r\nChanges and Additions:\r\n* New helper method `subscribers_enabled()`\r\n* New administrative interface for Subscribers\r\n* Ability to View, Add, and Remove Subscribers\r\n* Conditional showing and functionality*\r\n\r\nThis is a first attempt at implementing the administration of subscribers. I tried to utilize a lot of what was there already such as the Events, Model Binding, Naming Standards, View Standards, etc.\r\n\r\n**The menu item in the administrative panel will only show if the subscriber option is enabled AND the configuration requirements are met. The controller actions also utilize the existing app.subscriber filter so they will not function unless the same conditions are met.*\r\n\r\n**NOTE:** One thing you might notice is that I didn't add an \"Edit\" function. I had it completed, but it seemed like that doesn't make much sense because you would essentially be \"subscribing\" a new user and unsubscribing another...not sure how we would want to handle that.\r\n\r\n","created_at":"2015-06-30T17:22:10Z","updated_at":"2015-07-08T21:40:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c5df441200192312465c5139d8e1fc6453644f3","assignee":{"login":"jbrooksuk","id":246103,"avatar_url":"https://avatars.githubusercontent.com/u/246103?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrooksuk","html_url":"https://github.com/jbrooksuk","followers_url":"https://api.github.com/users/jbrooksuk/followers","following_url":"https://api.github.com/users/jbrooksuk/following{/other_user}","gists_url":"https://api.github.com/users/jbrooksuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrooksuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrooksuk/subscriptions","organizations_url":"https://api.github.com/users/jbrooksuk/orgs","repos_url":"https://api.github.com/users/jbrooksuk/repos","events_url":"https://api.github.com/users/jbrooksuk/events{/privacy}","received_events_url":"https://api.github.com/users/jbrooksuk/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cachethq/Cachet/pulls/776/commits","review_comments_url":"https://api.github.com/repos/cachethq/Cachet/pulls/776/comments","review_comment_url":"https://api.github.com/repos/cachethq/Cachet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cachethq/Cachet/issues/776/comments","statuses_url":"https://api.github.com/repos/cachethq/Cachet/statuses/1ca423cee6835d28ccccfac64dd2e9b6bdfa498e","head":{"label":"chaseconey:subscriber-list-759","ref":"subscriber-list-759","sha":"1ca423cee6835d28ccccfac64dd2e9b6bdfa498e","user":{"login":"chaseconey","id":1449463,"avatar_url":"https://avatars.githubusercontent.com/u/1449463?v=3","gravatar_id":"","url":"https://api.github.com/users/chaseconey","html_url":"https://github.com/chaseconey","followers_url":"https://api.github.com/users/chaseconey/followers","following_url":"https://api.github.com/users/chaseconey/following{/other_user}","gists_url":"https://api.github.com/users/chaseconey/gists{/gist_id}","starred_url":"https://api.github.com/users/chaseconey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaseconey/subscriptions","organizations_url":"https://api.github.com/users/chaseconey/orgs","repos_url":"https://api.github.com/users/chaseconey/repos","events_url":"https://api.github.com/users/chaseconey/events{/privacy}","received_events_url":"https://api.github.com/users/chaseconey/received_events","type":"User","site_admin":false},"repo":{"id":38315178,"name":"Cachet","full_name":"chaseconey/Cachet","owner":{"login":"chaseconey","id":1449463,"avatar_url":"https://avatars.githubusercontent.com/u/1449463?v=3","gravatar_id":"","url":"https://api.github.com/users/chaseconey","html_url":"https://github.com/chaseconey","followers_url":"https://api.github.com/users/chaseconey/followers","following_url":"https://api.github.com/users/chaseconey/following{/other_user}","gists_url":"https://api.github.com/users/chaseconey/gists{/gist_id}","starred_url":"https://api.github.com/users/chaseconey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaseconey/subscriptions","organizations_url":"https://api.github.com/users/chaseconey/orgs","repos_url":"https://api.github.com/users/chaseconey/repos","events_url":"https://api.github.com/users/chaseconey/events{/privacy}","received_events_url":"https://api.github.com/users/chaseconey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chaseconey/Cachet","description":"An open source status page system, for everyone.","fork":true,"url":"https://api.github.com/repos/chaseconey/Cachet","forks_url":"https://api.github.com/repos/chaseconey/Cachet/forks","keys_url":"https://api.github.com/repos/chaseconey/Cachet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chaseconey/Cachet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chaseconey/Cachet/teams","hooks_url":"https://api.github.com/repos/chaseconey/Cachet/hooks","issue_events_url":"https://api.github.com/repos/chaseconey/Cachet/issues/events{/number}","events_url":"https://api.github.com/repos/chaseconey/Cachet/events","assignees_url":"https://api.github.com/repos/chaseconey/Cachet/assignees{/user}","branches_url":"https://api.github.com/repos/chaseconey/Cachet/branches{/branch}","tags_url":"https://api.github.com/repos/chaseconey/Cachet/tags","blobs_url":"https://api.github.com/repos/chaseconey/Cachet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chaseconey/Cachet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chaseconey/Cachet/git/refs{/sha}","trees_url":"https://api.github.com/repos/chaseconey/Cachet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chaseconey/Cachet/statuses/{sha}","languages_url":"https://api.github.com/repos/chaseconey/Cachet/languages","stargazers_url":"https://api.github.com/repos/chaseconey/Cachet/stargazers","contributors_url":"https://api.github.com/repos/chaseconey/Cachet/contributors","subscribers_url":"https://api.github.com/repos/chaseconey/Cachet/subscribers","subscription_url":"https://api.github.com/repos/chaseconey/Cachet/subscription","commits_url":"https://api.github.com/repos/chaseconey/Cachet/commits{/sha}","git_commits_url":"https://api.github.com/repos/chaseconey/Cachet/git/commits{/sha}","comments_url":"https://api.github.com/repos/chaseconey/Cachet/comments{/number}","issue_comment_url":"https://api.github.com/repos/chaseconey/Cachet/issues/comments{/number}","contents_url":"https://api.github.com/repos/chaseconey/Cachet/contents/{+path}","compare_url":"https://api.github.com/repos/chaseconey/Cachet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chaseconey/Cachet/merges","archive_url":"https://api.github.com/repos/chaseconey/Cachet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chaseconey/Cachet/downloads","issues_url":"https://api.github.com/repos/chaseconey/Cachet/issues{/number}","pulls_url":"https://api.github.com/repos/chaseconey/Cachet/pulls{/number}","milestones_url":"https://api.github.com/repos/chaseconey/Cachet/milestones{/number}","notifications_url":"https://api.github.com/repos/chaseconey/Cachet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chaseconey/Cachet/labels{/name}","releases_url":"https://api.github.com/repos/chaseconey/Cachet/releases{/id}","created_at":"2015-06-30T14:50:22Z","updated_at":"2015-06-30T14:50:23Z","pushed_at":"2015-07-08T21:36:06Z","git_url":"git://github.com/chaseconey/Cachet.git","ssh_url":"git@github.com:chaseconey/Cachet.git","clone_url":"https://github.com/chaseconey/Cachet.git","svn_url":"https://github.com/chaseconey/Cachet","homepage":"https://cachethq.io/","size":7711,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"cachethq:master","ref":"master","sha":"b003a7aa1c802c41361ee1d932fd92acf9a1f6ca","user":{"login":"cachethq","id":9951502,"avatar_url":"https://avatars.githubusercontent.com/u/9951502?v=3","gravatar_id":"","url":"https://api.github.com/users/cachethq","html_url":"https://github.com/cachethq","followers_url":"https://api.github.com/users/cachethq/followers","following_url":"https://api.github.com/users/cachethq/following{/other_user}","gists_url":"https://api.github.com/users/cachethq/gists{/gist_id}","starred_url":"https://api.github.com/users/cachethq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachethq/subscriptions","organizations_url":"https://api.github.com/users/cachethq/orgs","repos_url":"https://api.github.com/users/cachethq/repos","events_url":"https://api.github.com/users/cachethq/events{/privacy}","received_events_url":"https://api.github.com/users/cachethq/received_events","type":"Organization","site_admin":false},"repo":{"id":26730195,"name":"Cachet","full_name":"cachethq/Cachet","owner":{"login":"cachethq","id":9951502,"avatar_url":"https://avatars.githubusercontent.com/u/9951502?v=3","gravatar_id":"","url":"https://api.github.com/users/cachethq","html_url":"https://github.com/cachethq","followers_url":"https://api.github.com/users/cachethq/followers","following_url":"https://api.github.com/users/cachethq/following{/other_user}","gists_url":"https://api.github.com/users/cachethq/gists{/gist_id}","starred_url":"https://api.github.com/users/cachethq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachethq/subscriptions","organizations_url":"https://api.github.com/users/cachethq/orgs","repos_url":"https://api.github.com/users/cachethq/repos","events_url":"https://api.github.com/users/cachethq/events{/privacy}","received_events_url":"https://api.github.com/users/cachethq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cachethq/Cachet","description":"An open source status page system, for everyone.","fork":false,"url":"https://api.github.com/repos/cachethq/Cachet","forks_url":"https://api.github.com/repos/cachethq/Cachet/forks","keys_url":"https://api.github.com/repos/cachethq/Cachet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cachethq/Cachet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cachethq/Cachet/teams","hooks_url":"https://api.github.com/repos/cachethq/Cachet/hooks","issue_events_url":"https://api.github.com/repos/cachethq/Cachet/issues/events{/number}","events_url":"https://api.github.com/repos/cachethq/Cachet/events","assignees_url":"https://api.github.com/repos/cachethq/Cachet/assignees{/user}","branches_url":"https://api.github.com/repos/cachethq/Cachet/branches{/branch}","tags_url":"https://api.github.com/repos/cachethq/Cachet/tags","blobs_url":"https://api.github.com/repos/cachethq/Cachet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cachethq/Cachet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cachethq/Cachet/git/refs{/sha}","trees_url":"https://api.github.com/repos/cachethq/Cachet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cachethq/Cachet/statuses/{sha}","languages_url":"https://api.github.com/repos/cachethq/Cachet/languages","stargazers_url":"https://api.github.com/repos/cachethq/Cachet/stargazers","contributors_url":"https://api.github.com/repos/cachethq/Cachet/contributors","subscribers_url":"https://api.github.com/repos/cachethq/Cachet/subscribers","subscription_url":"https://api.github.com/repos/cachethq/Cachet/subscription","commits_url":"https://api.github.com/repos/cachethq/Cachet/commits{/sha}","git_commits_url":"https://api.github.com/repos/cachethq/Cachet/git/commits{/sha}","comments_url":"https://api.github.com/repos/cachethq/Cachet/comments{/number}","issue_comment_url":"https://api.github.com/repos/cachethq/Cachet/issues/comments{/number}","contents_url":"https://api.github.com/repos/cachethq/Cachet/contents/{+path}","compare_url":"https://api.github.com/repos/cachethq/Cachet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cachethq/Cachet/merges","archive_url":"https://api.github.com/repos/cachethq/Cachet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cachethq/Cachet/downloads","issues_url":"https://api.github.com/repos/cachethq/Cachet/issues{/number}","pulls_url":"https://api.github.com/repos/cachethq/Cachet/pulls{/number}","milestones_url":"https://api.github.com/repos/cachethq/Cachet/milestones{/number}","notifications_url":"https://api.github.com/repos/cachethq/Cachet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cachethq/Cachet/labels{/name}","releases_url":"https://api.github.com/repos/cachethq/Cachet/releases{/id}","created_at":"2014-11-16T22:23:11Z","updated_at":"2015-07-08T20:59:29Z","pushed_at":"2015-07-08T21:36:07Z","git_url":"git://github.com/cachethq/Cachet.git","ssh_url":"git@github.com:cachethq/Cachet.git","clone_url":"https://github.com/cachethq/Cachet.git","svn_url":"https://github.com/cachethq/Cachet","homepage":"https://cachethq.io/","size":12747,"stargazers_count":2711,"watchers_count":2711,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":218,"mirror_url":null,"open_issues_count":28,"forks":218,"open_issues":28,"watchers":2711,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cachethq/Cachet/pulls/776"},"html":{"href":"https://github.com/cachethq/Cachet/pull/776"},"issue":{"href":"https://api.github.com/repos/cachethq/Cachet/issues/776"},"comments":{"href":"https://api.github.com/repos/cachethq/Cachet/issues/776/comments"},"review_comments":{"href":"https://api.github.com/repos/cachethq/Cachet/pulls/776/comments"},"review_comment":{"href":"https://api.github.com/repos/cachethq/Cachet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cachethq/Cachet/pulls/776/commits"},"statuses":{"href":"https://api.github.com/repos/cachethq/Cachet/statuses/1ca423cee6835d28ccccfac64dd2e9b6bdfa498e"}}}}