{"action":"created","comment":{"url":"https://api.github.com/repos/DoSomething/voting-app/pulls/comments/28541094","id":28541094,"diff_hunk":"@@ -0,0 +1,50 @@\n+<?php namespace App\\Http\\Middleware;\n+\n+use Closure;\n+use Illuminate\\Contracts\\Auth\\Guard;\n+\n+class Authenticate {\n+\n+\t/**\n+\t * The Guard implementation.\n+\t *\n+\t * @var Guard\n+\t */\n+\tprotected $auth;\n+\n+\t/**\n+\t * Create a new filter instance.\n+\t *\n+\t * @param  Guard  $auth\n+\t * @return void\n+\t */\n+\tpublic function __construct(Guard $auth)\n+\t{\n+\t\t$this->auth = $auth;\n+\t}\n+\n+\t/**\n+\t * Handle an incoming request.\n+\t *\n+\t * @param  \\Illuminate\\Http\\Request  $request\n+\t * @param  \\Closure  $next\n+\t * @return mixed\n+\t */\n+\tpublic function handle($request, Closure $next)\n+\t{\n+\t\tif ($this->auth->guest())\n+\t\t{","path":"app/Http/Middleware/Authenticate.php","position":36,"original_position":36,"commit_id":"a5e538b56c8c1489ecd402d3f59c450d87be13d0","original_commit_id":"a5e538b56c8c1489ecd402d3f59c450d87be13d0","user":{"login":"angaither","id":645205,"avatar_url":"https://avatars.githubusercontent.com/u/645205?v=3","gravatar_id":"","url":"https://api.github.com/users/angaither","html_url":"https://github.com/angaither","followers_url":"https://api.github.com/users/angaither/followers","following_url":"https://api.github.com/users/angaither/following{/other_user}","gists_url":"https://api.github.com/users/angaither/gists{/gist_id}","starred_url":"https://api.github.com/users/angaither/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angaither/subscriptions","organizations_url":"https://api.github.com/users/angaither/orgs","repos_url":"https://api.github.com/users/angaither/repos","events_url":"https://api.github.com/users/angaither/events{/privacy}","received_events_url":"https://api.github.com/users/angaither/received_events","type":"User","site_admin":false},"body":"ew, \r\n```\r\nif {\r\n then\r\n}\r\n```","created_at":"2015-04-16T19:22:24Z","updated_at":"2015-04-16T19:22:24Z","html_url":"https://github.com/DoSomething/voting-app/pull/289#discussion_r28541094","pull_request_url":"https://api.github.com/repos/DoSomething/voting-app/pulls/289","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/voting-app/pulls/comments/28541094"},"html":{"href":"https://github.com/DoSomething/voting-app/pull/289#discussion_r28541094"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/voting-app/pulls/289"}}},"pull_request":{"url":"https://api.github.com/repos/DoSomething/voting-app/pulls/289","id":33478860,"html_url":"https://github.com/DoSomething/voting-app/pull/289","diff_url":"https://github.com/DoSomething/voting-app/pull/289.diff","patch_url":"https://github.com/DoSomething/voting-app/pull/289.patch","issue_url":"https://api.github.com/repos/DoSomething/voting-app/issues/289","number":289,"state":"open","locked":false,"title":"Upgrade from Laravel 4.2 to Laravel 5.","user":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"body":"# Changes\r\nUpdates Voting App to use Laravel 5. Includes a ton of re-organization to fit new L5 project structure. See the [Upgrade Guide](http://laravel.com/docs/5.0/upgrade#upgrade-5.0) for an outline of major changes. Also removes old Gulp configuration in favor of using [Laravel Elixir](http://laravel.com/docs/5.0/elixir), and removes Codeception tests since they become out of date during the pre-launch crunch time before CGG.\r\n\r\nValidation, previously done with the [Laracasts Validation](https://github.com/laracasts/Validation) package, still needs to be refactored to use the new L5 [Controller Validation](http://laravel.com/docs/5.0/validation#controller-validation) or [Form Requests](http://laravel.com/docs/5.0/validation#form-request-validation) objects.\r\n\r\nThere are probably still some things that are broken in here, but basic functionality all seems sound so I think this is good to merge since it's a whopper of a pull request.\r\n\r\nFor review: @angaither \r\n","created_at":"2015-04-16T18:26:23Z","updated_at":"2015-04-16T19:22:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bbff4d180c20bacb5c1186a93ae4b8a625910a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/voting-app/pulls/289/commits","review_comments_url":"https://api.github.com/repos/DoSomething/voting-app/pulls/289/comments","review_comment_url":"https://api.github.com/repos/DoSomething/voting-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoSomething/voting-app/issues/289/comments","statuses_url":"https://api.github.com/repos/DoSomething/voting-app/statuses/a5e538b56c8c1489ecd402d3f59c450d87be13d0","head":{"label":"DoSomething:l5","ref":"l5","sha":"a5e538b56c8c1489ecd402d3f59c450d87be13d0","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":24192462,"name":"voting-app","full_name":"DoSomething/voting-app","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/voting-app","description":"Voting app for DoSomething.org campaigns.","fork":false,"url":"https://api.github.com/repos/DoSomething/voting-app","forks_url":"https://api.github.com/repos/DoSomething/voting-app/forks","keys_url":"https://api.github.com/repos/DoSomething/voting-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/voting-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/voting-app/teams","hooks_url":"https://api.github.com/repos/DoSomething/voting-app/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/voting-app/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/voting-app/events","assignees_url":"https://api.github.com/repos/DoSomething/voting-app/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/voting-app/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/voting-app/tags","blobs_url":"https://api.github.com/repos/DoSomething/voting-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/voting-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/voting-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/voting-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/voting-app/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/voting-app/languages","stargazers_url":"https://api.github.com/repos/DoSomething/voting-app/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/voting-app/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/voting-app/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/voting-app/subscription","commits_url":"https://api.github.com/repos/DoSomething/voting-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/voting-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/voting-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/voting-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/voting-app/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/voting-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/voting-app/merges","archive_url":"https://api.github.com/repos/DoSomething/voting-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/voting-app/downloads","issues_url":"https://api.github.com/repos/DoSomething/voting-app/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/voting-app/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/voting-app/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/voting-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/voting-app/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/voting-app/releases{/id}","created_at":"2014-09-18T14:58:47Z","updated_at":"2015-04-14T21:07:55Z","pushed_at":"2015-04-16T19:10:20Z","git_url":"git://github.com/DoSomething/voting-app.git","ssh_url":"git@github.com:DoSomething/voting-app.git","clone_url":"https://github.com/DoSomething/voting-app.git","svn_url":"https://github.com/DoSomething/voting-app","homepage":null,"size":2964,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":22,"forks":2,"open_issues":22,"watchers":1,"default_branch":"master"}},"base":{"label":"DoSomething:master","ref":"master","sha":"80d91ecb196700141c8f635cccad2762db950d91","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":24192462,"name":"voting-app","full_name":"DoSomething/voting-app","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/voting-app","description":"Voting app for DoSomething.org campaigns.","fork":false,"url":"https://api.github.com/repos/DoSomething/voting-app","forks_url":"https://api.github.com/repos/DoSomething/voting-app/forks","keys_url":"https://api.github.com/repos/DoSomething/voting-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/voting-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/voting-app/teams","hooks_url":"https://api.github.com/repos/DoSomething/voting-app/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/voting-app/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/voting-app/events","assignees_url":"https://api.github.com/repos/DoSomething/voting-app/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/voting-app/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/voting-app/tags","blobs_url":"https://api.github.com/repos/DoSomething/voting-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/voting-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/voting-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/voting-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/voting-app/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/voting-app/languages","stargazers_url":"https://api.github.com/repos/DoSomething/voting-app/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/voting-app/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/voting-app/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/voting-app/subscription","commits_url":"https://api.github.com/repos/DoSomething/voting-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/voting-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/voting-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/voting-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/voting-app/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/voting-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/voting-app/merges","archive_url":"https://api.github.com/repos/DoSomething/voting-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/voting-app/downloads","issues_url":"https://api.github.com/repos/DoSomething/voting-app/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/voting-app/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/voting-app/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/voting-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/voting-app/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/voting-app/releases{/id}","created_at":"2014-09-18T14:58:47Z","updated_at":"2015-04-14T21:07:55Z","pushed_at":"2015-04-16T19:10:20Z","git_url":"git://github.com/DoSomething/voting-app.git","ssh_url":"git@github.com:DoSomething/voting-app.git","clone_url":"https://github.com/DoSomething/voting-app.git","svn_url":"https://github.com/DoSomething/voting-app","homepage":null,"size":2964,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":22,"forks":2,"open_issues":22,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/voting-app/pulls/289"},"html":{"href":"https://github.com/DoSomething/voting-app/pull/289"},"issue":{"href":"https://api.github.com/repos/DoSomething/voting-app/issues/289"},"comments":{"href":"https://api.github.com/repos/DoSomething/voting-app/issues/289/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/voting-app/pulls/289/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/voting-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/voting-app/pulls/289/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/voting-app/statuses/a5e538b56c8c1489ecd402d3f59c450d87be13d0"}}}}