{"action":"created","comment":{"url":"https://api.github.com/repos/laravel/framework/pulls/comments/37139581","id":37139581,"diff_hunk":"@@ -447,6 +478,16 @@ public function min($key = null)\n     }\n \n     /**\n+     * Create a new collection consisting of odd elements.\n+     *\n+     * @return $this","path":"src/Illuminate/Support/Collection.php","position":44,"original_position":44,"commit_id":"1003e6e4741bf4e070d911e1a43f213c7d4067cb","original_commit_id":"1003e6e4741bf4e070d911e1a43f213c7d4067cb","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":"wrong","created_at":"2015-08-15T21:31:48Z","updated_at":"2015-08-15T21:31:48Z","html_url":"https://github.com/laravel/framework/pull/9946#discussion_r37139581","pull_request_url":"https://api.github.com/repos/laravel/framework/pulls/9946","_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments/37139581"},"html":{"href":"https://github.com/laravel/framework/pull/9946#discussion_r37139581"},"pull_request":{"href":"https://api.github.com/repos/laravel/framework/pulls/9946"}}},"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/9946","id":42518805,"html_url":"https://github.com/laravel/framework/pull/9946","diff_url":"https://github.com/laravel/framework/pull/9946.diff","patch_url":"https://github.com/laravel/framework/pull/9946.patch","issue_url":"https://api.github.com/repos/laravel/framework/issues/9946","number":9946,"state":"open","locked":false,"title":"[5.1] Add even() and odd() methods to Collection","user":{"login":"arrilot","id":2826480,"avatar_url":"https://avatars.githubusercontent.com/u/2826480?v=3","gravatar_id":"","url":"https://api.github.com/users/arrilot","html_url":"https://github.com/arrilot","followers_url":"https://api.github.com/users/arrilot/followers","following_url":"https://api.github.com/users/arrilot/following{/other_user}","gists_url":"https://api.github.com/users/arrilot/gists{/gist_id}","starred_url":"https://api.github.com/users/arrilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arrilot/subscriptions","organizations_url":"https://api.github.com/users/arrilot/orgs","repos_url":"https://api.github.com/users/arrilot/repos","events_url":"https://api.github.com/users/arrilot/events{/privacy}","received_events_url":"https://api.github.com/users/arrilot/received_events","type":"User","site_admin":false},"body":"The tests pretty much describe what they do.\r\n\r\nMy use case is a little bit similar to the `chunk()`'s one: (Sorry for non-English texts)\r\nhttps://i.gyazo.com/b3d0f673e957cf6abb1566aed24e9e1f.png\r\n\r\nThe files must be sorted like that\r\n1 2\r\n3 4\r\nbut I've got the following markup from frontend developer:\r\n```html\r\n<ul class=\"left\">\r\n...\r\n</ul>\r\n<ul class=\"right\">\r\n...\r\n</ul>\r\n```\r\nSo, I would like to have a view like that:\r\n```html\r\n<ul class=\"left\">\r\n     @foreach($files->even() as $file)\r\n          <li>..</li>\r\n     @endforeach\r\n</ul>\r\n<ul class=\"right\">\r\n     @foreach($files->odd() as $file)\r\n          <li>..</li>\r\n     @endforeach\r\n</ul>\r\n```\r\n\r\nI know that it can be solved by extending the Collection, but I guess these methods make perfect sense in core since we tend to make collections more powerful adding stuff like `zip()`","created_at":"2015-08-15T12:46:21Z","updated_at":"2015-08-15T21:31:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91ae135e5b1016512cee5873af726379ce955830","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/framework/pulls/9946/commits","review_comments_url":"https://api.github.com/repos/laravel/framework/pulls/9946/comments","review_comment_url":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/framework/issues/9946/comments","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/1003e6e4741bf4e070d911e1a43f213c7d4067cb","head":{"label":"arrilot:add_more_methods_to_collection","ref":"add_more_methods_to_collection","sha":"1003e6e4741bf4e070d911e1a43f213c7d4067cb","user":{"login":"arrilot","id":2826480,"avatar_url":"https://avatars.githubusercontent.com/u/2826480?v=3","gravatar_id":"","url":"https://api.github.com/users/arrilot","html_url":"https://github.com/arrilot","followers_url":"https://api.github.com/users/arrilot/followers","following_url":"https://api.github.com/users/arrilot/following{/other_user}","gists_url":"https://api.github.com/users/arrilot/gists{/gist_id}","starred_url":"https://api.github.com/users/arrilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arrilot/subscriptions","organizations_url":"https://api.github.com/users/arrilot/orgs","repos_url":"https://api.github.com/users/arrilot/repos","events_url":"https://api.github.com/users/arrilot/events{/privacy}","received_events_url":"https://api.github.com/users/arrilot/received_events","type":"User","site_admin":false},"repo":{"id":29366844,"name":"framework","full_name":"arrilot/framework","owner":{"login":"arrilot","id":2826480,"avatar_url":"https://avatars.githubusercontent.com/u/2826480?v=3","gravatar_id":"","url":"https://api.github.com/users/arrilot","html_url":"https://github.com/arrilot","followers_url":"https://api.github.com/users/arrilot/followers","following_url":"https://api.github.com/users/arrilot/following{/other_user}","gists_url":"https://api.github.com/users/arrilot/gists{/gist_id}","starred_url":"https://api.github.com/users/arrilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arrilot/subscriptions","organizations_url":"https://api.github.com/users/arrilot/orgs","repos_url":"https://api.github.com/users/arrilot/repos","events_url":"https://api.github.com/users/arrilot/events{/privacy}","received_events_url":"https://api.github.com/users/arrilot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arrilot/framework","description":"","fork":true,"url":"https://api.github.com/repos/arrilot/framework","forks_url":"https://api.github.com/repos/arrilot/framework/forks","keys_url":"https://api.github.com/repos/arrilot/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arrilot/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arrilot/framework/teams","hooks_url":"https://api.github.com/repos/arrilot/framework/hooks","issue_events_url":"https://api.github.com/repos/arrilot/framework/issues/events{/number}","events_url":"https://api.github.com/repos/arrilot/framework/events","assignees_url":"https://api.github.com/repos/arrilot/framework/assignees{/user}","branches_url":"https://api.github.com/repos/arrilot/framework/branches{/branch}","tags_url":"https://api.github.com/repos/arrilot/framework/tags","blobs_url":"https://api.github.com/repos/arrilot/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arrilot/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arrilot/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/arrilot/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arrilot/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/arrilot/framework/languages","stargazers_url":"https://api.github.com/repos/arrilot/framework/stargazers","contributors_url":"https://api.github.com/repos/arrilot/framework/contributors","subscribers_url":"https://api.github.com/repos/arrilot/framework/subscribers","subscription_url":"https://api.github.com/repos/arrilot/framework/subscription","commits_url":"https://api.github.com/repos/arrilot/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/arrilot/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/arrilot/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/arrilot/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/arrilot/framework/contents/{+path}","compare_url":"https://api.github.com/repos/arrilot/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arrilot/framework/merges","archive_url":"https://api.github.com/repos/arrilot/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arrilot/framework/downloads","issues_url":"https://api.github.com/repos/arrilot/framework/issues{/number}","pulls_url":"https://api.github.com/repos/arrilot/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/arrilot/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/arrilot/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arrilot/framework/labels{/name}","releases_url":"https://api.github.com/repos/arrilot/framework/releases{/id}","created_at":"2015-01-16T20:39:16Z","updated_at":"2015-01-16T20:39:20Z","pushed_at":"2015-08-15T12:54:09Z","git_url":"git://github.com/arrilot/framework.git","ssh_url":"git@github.com:arrilot/framework.git","clone_url":"https://github.com/arrilot/framework.git","svn_url":"https://github.com/arrilot/framework","homepage":"http://laravel.com","size":18071,"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":"4.2"}},"base":{"label":"laravel:5.1","ref":"5.1","sha":"e88110321615616004d7cc0a509024f42030e050","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-08-15T19:39:47Z","pushed_at":"2015-08-15T14:36:55Z","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":65297,"stargazers_count":3911,"watchers_count":3911,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2229,"mirror_url":null,"open_issues_count":74,"forks":2229,"open_issues":74,"watchers":3911,"default_branch":"5.1"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/9946"},"html":{"href":"https://github.com/laravel/framework/pull/9946"},"issue":{"href":"https://api.github.com/repos/laravel/framework/issues/9946"},"comments":{"href":"https://api.github.com/repos/laravel/framework/issues/9946/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/framework/pulls/9946/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/framework/pulls/9946/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/framework/statuses/1003e6e4741bf4e070d911e1a43f213c7d4067cb"}}}}