{"action":"closed","number":2594,"pull_request":{"url":"https://api.github.com/repos/laravel/docs/pulls/2594","id":83157016,"html_url":"https://github.com/laravel/docs/pull/2594","diff_url":"https://github.com/laravel/docs/pull/2594.diff","patch_url":"https://github.com/laravel/docs/pull/2594.patch","issue_url":"https://api.github.com/repos/laravel/docs/issues/2594","number":2594,"state":"closed","locked":false,"title":"Added missing collection methods","user":{"login":"gcw07","id":1513122,"avatar_url":"https://avatars.githubusercontent.com/u/1513122?v=3","gravatar_id":"","url":"https://api.github.com/users/gcw07","html_url":"https://github.com/gcw07","followers_url":"https://api.github.com/users/gcw07/followers","following_url":"https://api.github.com/users/gcw07/following{/other_user}","gists_url":"https://api.github.com/users/gcw07/gists{/gist_id}","starred_url":"https://api.github.com/users/gcw07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcw07/subscriptions","organizations_url":"https://api.github.com/users/gcw07/orgs","repos_url":"https://api.github.com/users/gcw07/repos","events_url":"https://api.github.com/users/gcw07/events{/privacy}","received_events_url":"https://api.github.com/users/gcw07/received_events","type":"User","site_admin":false},"body":"These were new methods added recently to the collection class. The mapWithKeys example is from @adamwathan blog post, just updated for the changes that were made when the method was pulled into the core. I wasn't sure how best to do an example for the pipe method, so I just used the test case.","created_at":"2016-08-29T19:54:05Z","updated_at":"2016-08-30T15:04:40Z","closed_at":"2016-08-30T15:04:40Z","merged_at":"2016-08-30T15:04:40Z","merge_commit_sha":"f2f3ecbf84e4fa2b922ab9760c10741e6115fe48","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/laravel/docs/pulls/2594/commits","review_comments_url":"https://api.github.com/repos/laravel/docs/pulls/2594/comments","review_comment_url":"https://api.github.com/repos/laravel/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/docs/issues/2594/comments","statuses_url":"https://api.github.com/repos/laravel/docs/statuses/f2f3ecbf84e4fa2b922ab9760c10741e6115fe48","head":{"label":"gcw07:add-missing-collection-functions","ref":"add-missing-collection-functions","sha":"f2f3ecbf84e4fa2b922ab9760c10741e6115fe48","user":{"login":"gcw07","id":1513122,"avatar_url":"https://avatars.githubusercontent.com/u/1513122?v=3","gravatar_id":"","url":"https://api.github.com/users/gcw07","html_url":"https://github.com/gcw07","followers_url":"https://api.github.com/users/gcw07/followers","following_url":"https://api.github.com/users/gcw07/following{/other_user}","gists_url":"https://api.github.com/users/gcw07/gists{/gist_id}","starred_url":"https://api.github.com/users/gcw07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcw07/subscriptions","organizations_url":"https://api.github.com/users/gcw07/orgs","repos_url":"https://api.github.com/users/gcw07/repos","events_url":"https://api.github.com/users/gcw07/events{/privacy}","received_events_url":"https://api.github.com/users/gcw07/received_events","type":"User","site_admin":false},"repo":{"id":66871083,"name":"docs","full_name":"gcw07/docs","owner":{"login":"gcw07","id":1513122,"avatar_url":"https://avatars.githubusercontent.com/u/1513122?v=3","gravatar_id":"","url":"https://api.github.com/users/gcw07","html_url":"https://github.com/gcw07","followers_url":"https://api.github.com/users/gcw07/followers","following_url":"https://api.github.com/users/gcw07/following{/other_user}","gists_url":"https://api.github.com/users/gcw07/gists{/gist_id}","starred_url":"https://api.github.com/users/gcw07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcw07/subscriptions","organizations_url":"https://api.github.com/users/gcw07/orgs","repos_url":"https://api.github.com/users/gcw07/repos","events_url":"https://api.github.com/users/gcw07/events{/privacy}","received_events_url":"https://api.github.com/users/gcw07/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gcw07/docs","description":null,"fork":true,"url":"https://api.github.com/repos/gcw07/docs","forks_url":"https://api.github.com/repos/gcw07/docs/forks","keys_url":"https://api.github.com/repos/gcw07/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gcw07/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gcw07/docs/teams","hooks_url":"https://api.github.com/repos/gcw07/docs/hooks","issue_events_url":"https://api.github.com/repos/gcw07/docs/issues/events{/number}","events_url":"https://api.github.com/repos/gcw07/docs/events","assignees_url":"https://api.github.com/repos/gcw07/docs/assignees{/user}","branches_url":"https://api.github.com/repos/gcw07/docs/branches{/branch}","tags_url":"https://api.github.com/repos/gcw07/docs/tags","blobs_url":"https://api.github.com/repos/gcw07/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gcw07/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gcw07/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gcw07/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gcw07/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/gcw07/docs/languages","stargazers_url":"https://api.github.com/repos/gcw07/docs/stargazers","contributors_url":"https://api.github.com/repos/gcw07/docs/contributors","subscribers_url":"https://api.github.com/repos/gcw07/docs/subscribers","subscription_url":"https://api.github.com/repos/gcw07/docs/subscription","commits_url":"https://api.github.com/repos/gcw07/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gcw07/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gcw07/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gcw07/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gcw07/docs/contents/{+path}","compare_url":"https://api.github.com/repos/gcw07/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gcw07/docs/merges","archive_url":"https://api.github.com/repos/gcw07/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gcw07/docs/downloads","issues_url":"https://api.github.com/repos/gcw07/docs/issues{/number}","pulls_url":"https://api.github.com/repos/gcw07/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/gcw07/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/gcw07/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gcw07/docs/labels{/name}","releases_url":"https://api.github.com/repos/gcw07/docs/releases{/id}","deployments_url":"https://api.github.com/repos/gcw07/docs/deployments","created_at":"2016-08-29T18:50:19Z","updated_at":"2016-08-29T14:32:57Z","pushed_at":"2016-08-29T19:47:27Z","git_url":"git://github.com/gcw07/docs.git","ssh_url":"git@github.com:gcw07/docs.git","clone_url":"https://github.com/gcw07/docs.git","svn_url":"https://github.com/gcw07/docs","homepage":"","size":5235,"stargazers_count":0,"watchers_count":0,"language":null,"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.3"}},"base":{"label":"laravel:5.3","ref":"5.3","sha":"945930f821ce67a8b6b96dabc80ee47064600b5e","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":7546847,"name":"docs","full_name":"laravel/docs","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/docs","description":"","fork":false,"url":"https://api.github.com/repos/laravel/docs","forks_url":"https://api.github.com/repos/laravel/docs/forks","keys_url":"https://api.github.com/repos/laravel/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/docs/teams","hooks_url":"https://api.github.com/repos/laravel/docs/hooks","issue_events_url":"https://api.github.com/repos/laravel/docs/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/docs/events","assignees_url":"https://api.github.com/repos/laravel/docs/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/docs/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/docs/tags","blobs_url":"https://api.github.com/repos/laravel/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/docs/languages","stargazers_url":"https://api.github.com/repos/laravel/docs/stargazers","contributors_url":"https://api.github.com/repos/laravel/docs/contributors","subscribers_url":"https://api.github.com/repos/laravel/docs/subscribers","subscription_url":"https://api.github.com/repos/laravel/docs/subscription","commits_url":"https://api.github.com/repos/laravel/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel/docs/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/docs/merges","archive_url":"https://api.github.com/repos/laravel/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/docs/downloads","issues_url":"https://api.github.com/repos/laravel/docs/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/docs/labels{/name}","releases_url":"https://api.github.com/repos/laravel/docs/releases{/id}","deployments_url":"https://api.github.com/repos/laravel/docs/deployments","created_at":"2013-01-10T19:08:45Z","updated_at":"2016-08-29T14:32:57Z","pushed_at":"2016-08-30T15:04:40Z","git_url":"git://github.com/laravel/docs.git","ssh_url":"git@github.com:laravel/docs.git","clone_url":"https://github.com/laravel/docs.git","svn_url":"https://github.com/laravel/docs","homepage":"","size":16738,"stargazers_count":773,"watchers_count":773,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1894,"mirror_url":null,"open_issues_count":32,"forks":1894,"open_issues":32,"watchers":773,"default_branch":"5.3"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/docs/pulls/2594"},"html":{"href":"https://github.com/laravel/docs/pull/2594"},"issue":{"href":"https://api.github.com/repos/laravel/docs/issues/2594"},"comments":{"href":"https://api.github.com/repos/laravel/docs/issues/2594/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/docs/pulls/2594/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/docs/pulls/2594/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/docs/statuses/f2f3ecbf84e4fa2b922ab9760c10741e6115fe48"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"taylorotwell","id":463230,"avatar_url":"https://avatars.githubusercontent.com/u/463230?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorotwell","html_url":"https://github.com/taylorotwell","followers_url":"https://api.github.com/users/taylorotwell/followers","following_url":"https://api.github.com/users/taylorotwell/following{/other_user}","gists_url":"https://api.github.com/users/taylorotwell/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorotwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorotwell/subscriptions","organizations_url":"https://api.github.com/users/taylorotwell/orgs","repos_url":"https://api.github.com/users/taylorotwell/repos","events_url":"https://api.github.com/users/taylorotwell/events{/privacy}","received_events_url":"https://api.github.com/users/taylorotwell/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":46,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"taylorotwell"}}