{"action":"created","comment":{"url":"https://api.github.com/repos/laravel/framework/pulls/comments/27021961","id":27021961,"diff_hunk":"@@ -1562,7 +1564,7 @@ public function exists()\n \t * Retrieve the \"count\" result of the query.\n \t *\n \t * @param  string  $columns\n-\t * @return int\n+\t * @return mixed","path":"src/Illuminate/Database/Query/Builder.php","position":null,"original_position":14,"commit_id":"84fed140e3b803cbb9bd98ce28d5f203dc131882","original_commit_id":"d1ac2375912081b06c6add2467abd3e4f8a052b1","user":{"login":"JoostK","id":123679,"avatar_url":"https://avatars.githubusercontent.com/u/123679?v=3","gravatar_id":"","url":"https://api.github.com/users/JoostK","html_url":"https://github.com/JoostK","followers_url":"https://api.github.com/users/JoostK/followers","following_url":"https://api.github.com/users/JoostK/following{/other_user}","gists_url":"https://api.github.com/users/JoostK/gists{/gist_id}","starred_url":"https://api.github.com/users/JoostK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoostK/subscriptions","organizations_url":"https://api.github.com/users/JoostK/orgs","repos_url":"https://api.github.com/users/JoostK/repos","events_url":"https://api.github.com/users/JoostK/events{/privacy}","received_events_url":"https://api.github.com/users/JoostK/received_events","type":"User","site_admin":false},"body":"It should. I noticed when creating the PR, as I never look at docblocks I didn't thnk about updating it earlier. The same is true for any of the other aggregate methods (and aggregate itself).\r\n\r\nNow that I think about it, perhaps it's better to collapse grouped results to a single value in all cases, because the behaviour now depends on having set `groupBy` or not which is kind of unpleasant. Moreover, the actual group is not accessible so all you currently have is an array of numbers for which you do not know to which group they belong, so perhaps just aggregate them manually in PHP. I will send another PR to accomplish this so you can better see what I mean.","created_at":"2015-03-24T12:20:25Z","updated_at":"2015-03-24T12:20:25Z","html_url":"https://github.com/laravel/framework/pull/8113#discussion_r27021961","pull_request_url":"https://api.github.com/repos/laravel/framework/pulls/8113","_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments/27021961"},"html":{"href":"https://github.com/laravel/framework/pull/8113#discussion_r27021961"},"pull_request":{"href":"https://api.github.com/repos/laravel/framework/pulls/8113"}}},"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/8113","id":31768786,"html_url":"https://github.com/laravel/framework/pull/8113","diff_url":"https://github.com/laravel/framework/pull/8113.diff","patch_url":"https://github.com/laravel/framework/pull/8113.patch","issue_url":"https://api.github.com/repos/laravel/framework/issues/8113","number":8113,"state":"open","locked":false,"title":"[5.0] Fix aggregate function to deal with group by sql","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":"Replaces #7372 and #8112.\r\n\r\n// cc @fcjailybo, @JoostK, @codelight89","created_at":"2015-03-23T20:05:43Z","updated_at":"2015-03-24T12:20:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a4cf018ee935dae821f3ca467cc107b1414f293","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/framework/pulls/8113/commits","review_comments_url":"https://api.github.com/repos/laravel/framework/pulls/8113/comments","review_comment_url":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/framework/issues/8113/comments","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/84fed140e3b803cbb9bd98ce28d5f203dc131882","head":{"label":"GrahamForks:5.0-builder","ref":"5.0-builder","sha":"84fed140e3b803cbb9bd98ce28d5f203dc131882","user":{"login":"GrahamForks","id":10179291,"avatar_url":"https://avatars.githubusercontent.com/u/10179291?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamForks","html_url":"https://github.com/GrahamForks","followers_url":"https://api.github.com/users/GrahamForks/followers","following_url":"https://api.github.com/users/GrahamForks/following{/other_user}","gists_url":"https://api.github.com/users/GrahamForks/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamForks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamForks/subscriptions","organizations_url":"https://api.github.com/users/GrahamForks/orgs","repos_url":"https://api.github.com/users/GrahamForks/repos","events_url":"https://api.github.com/users/GrahamForks/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamForks/received_events","type":"Organization","site_admin":false},"repo":{"id":16859749,"name":"framework","full_name":"GrahamForks/framework","owner":{"login":"GrahamForks","id":10179291,"avatar_url":"https://avatars.githubusercontent.com/u/10179291?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamForks","html_url":"https://github.com/GrahamForks","followers_url":"https://api.github.com/users/GrahamForks/followers","following_url":"https://api.github.com/users/GrahamForks/following{/other_user}","gists_url":"https://api.github.com/users/GrahamForks/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamForks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamForks/subscriptions","organizations_url":"https://api.github.com/users/GrahamForks/orgs","repos_url":"https://api.github.com/users/GrahamForks/repos","events_url":"https://api.github.com/users/GrahamForks/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamForks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GrahamForks/framework","description":"","fork":true,"url":"https://api.github.com/repos/GrahamForks/framework","forks_url":"https://api.github.com/repos/GrahamForks/framework/forks","keys_url":"https://api.github.com/repos/GrahamForks/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GrahamForks/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GrahamForks/framework/teams","hooks_url":"https://api.github.com/repos/GrahamForks/framework/hooks","issue_events_url":"https://api.github.com/repos/GrahamForks/framework/issues/events{/number}","events_url":"https://api.github.com/repos/GrahamForks/framework/events","assignees_url":"https://api.github.com/repos/GrahamForks/framework/assignees{/user}","branches_url":"https://api.github.com/repos/GrahamForks/framework/branches{/branch}","tags_url":"https://api.github.com/repos/GrahamForks/framework/tags","blobs_url":"https://api.github.com/repos/GrahamForks/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GrahamForks/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GrahamForks/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/GrahamForks/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GrahamForks/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/GrahamForks/framework/languages","stargazers_url":"https://api.github.com/repos/GrahamForks/framework/stargazers","contributors_url":"https://api.github.com/repos/GrahamForks/framework/contributors","subscribers_url":"https://api.github.com/repos/GrahamForks/framework/subscribers","subscription_url":"https://api.github.com/repos/GrahamForks/framework/subscription","commits_url":"https://api.github.com/repos/GrahamForks/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/GrahamForks/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/GrahamForks/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/GrahamForks/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/GrahamForks/framework/contents/{+path}","compare_url":"https://api.github.com/repos/GrahamForks/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GrahamForks/framework/merges","archive_url":"https://api.github.com/repos/GrahamForks/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GrahamForks/framework/downloads","issues_url":"https://api.github.com/repos/GrahamForks/framework/issues{/number}","pulls_url":"https://api.github.com/repos/GrahamForks/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/GrahamForks/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/GrahamForks/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GrahamForks/framework/labels{/name}","releases_url":"https://api.github.com/repos/GrahamForks/framework/releases{/id}","created_at":"2014-02-15T09:17:38Z","updated_at":"2015-03-23T16:30:00Z","pushed_at":"2015-03-24T12:08:04Z","git_url":"git://github.com/GrahamForks/framework.git","ssh_url":"git@github.com:GrahamForks/framework.git","clone_url":"https://github.com/GrahamForks/framework.git","svn_url":"https://github.com/GrahamForks/framework","homepage":"http://laravel.com","size":16768,"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":"5.0"}},"base":{"label":"laravel:5.0","ref":"5.0","sha":"8114f60928345fba31bb4794e676ff01e87e4880","user":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"repo":{"id":7548986,"name":"framework","full_name":"laravel/framework","owner":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel/framework","description":"","fork":false,"url":"https://api.github.com/repos/laravel/framework","forks_url":"https://api.github.com/repos/laravel/framework/forks","keys_url":"https://api.github.com/repos/laravel/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/framework/teams","hooks_url":"https://api.github.com/repos/laravel/framework/hooks","issue_events_url":"https://api.github.com/repos/laravel/framework/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/framework/events","assignees_url":"https://api.github.com/repos/laravel/framework/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/framework/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/framework/tags","blobs_url":"https://api.github.com/repos/laravel/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/framework/languages","stargazers_url":"https://api.github.com/repos/laravel/framework/stargazers","contributors_url":"https://api.github.com/repos/laravel/framework/contributors","subscribers_url":"https://api.github.com/repos/laravel/framework/subscribers","subscription_url":"https://api.github.com/repos/laravel/framework/subscription","commits_url":"https://api.github.com/repos/laravel/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel/framework/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/framework/merges","archive_url":"https://api.github.com/repos/laravel/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/framework/downloads","issues_url":"https://api.github.com/repos/laravel/framework/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/framework/labels{/name}","releases_url":"https://api.github.com/repos/laravel/framework/releases{/id}","created_at":"2013-01-10T21:27:28Z","updated_at":"2015-03-24T06:34:53Z","pushed_at":"2015-03-24T12:08:05Z","git_url":"git://github.com/laravel/framework.git","ssh_url":"git@github.com:laravel/framework.git","clone_url":"https://github.com/laravel/framework.git","svn_url":"https://github.com/laravel/framework","homepage":"http://laravel.com","size":60254,"stargazers_count":3356,"watchers_count":3356,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1824,"mirror_url":null,"open_issues_count":94,"forks":1824,"open_issues":94,"watchers":3356,"default_branch":"5.0"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/8113"},"html":{"href":"https://github.com/laravel/framework/pull/8113"},"issue":{"href":"https://api.github.com/repos/laravel/framework/issues/8113"},"comments":{"href":"https://api.github.com/repos/laravel/framework/issues/8113/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/framework/pulls/8113/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/framework/pulls/8113/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/framework/statuses/84fed140e3b803cbb9bd98ce28d5f203dc131882"}}}}