{"action":"created","comment":{"url":"https://api.github.com/repos/laravel/docs/pulls/comments/28644928","id":28644928,"diff_hunk":"@@ -1134,10 +1134,15 @@ When filtering collections, the callback provided will be used as callback for [\n \t{\n \t\treturn $role->created_at;\n \t});\n+\t$roles = $roles->sortByDesc(function($role)","path":"eloquent.md","position":4,"original_position":4,"commit_id":"b6954de882c177e8f36fadb10ff1924c39549e85","original_commit_id":"b6954de882c177e8f36fadb10ff1924c39549e85","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":"need a newline before this","created_at":"2015-04-18T15:38:22Z","updated_at":"2015-04-18T15:38:22Z","html_url":"https://github.com/laravel/docs/pull/1337#discussion_r28644928","pull_request_url":"https://api.github.com/repos/laravel/docs/pulls/1337","_links":{"self":{"href":"https://api.github.com/repos/laravel/docs/pulls/comments/28644928"},"html":{"href":"https://github.com/laravel/docs/pull/1337#discussion_r28644928"},"pull_request":{"href":"https://api.github.com/repos/laravel/docs/pulls/1337"}}},"pull_request":{"url":"https://api.github.com/repos/laravel/docs/pulls/1337","id":33603448,"html_url":"https://github.com/laravel/docs/pull/1337","diff_url":"https://github.com/laravel/docs/pull/1337.diff","patch_url":"https://github.com/laravel/docs/pull/1337.patch","issue_url":"https://api.github.com/repos/laravel/docs/issues/1337","number":1337,"state":"open","locked":false,"title":"add descending sortBy order info.","user":{"login":"flipflopsimsommer","id":2880362,"avatar_url":"https://avatars.githubusercontent.com/u/2880362?v=3","gravatar_id":"","url":"https://api.github.com/users/flipflopsimsommer","html_url":"https://github.com/flipflopsimsommer","followers_url":"https://api.github.com/users/flipflopsimsommer/followers","following_url":"https://api.github.com/users/flipflopsimsommer/following{/other_user}","gists_url":"https://api.github.com/users/flipflopsimsommer/gists{/gist_id}","starred_url":"https://api.github.com/users/flipflopsimsommer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flipflopsimsommer/subscriptions","organizations_url":"https://api.github.com/users/flipflopsimsommer/orgs","repos_url":"https://api.github.com/users/flipflopsimsommer/repos","events_url":"https://api.github.com/users/flipflopsimsommer/events{/privacy}","received_events_url":"https://api.github.com/users/flipflopsimsommer/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-18T15:10:19Z","updated_at":"2015-04-18T15:38:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09a089016f5b10e6373b14347824d1b17c443685","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/docs/pulls/1337/commits","review_comments_url":"https://api.github.com/repos/laravel/docs/pulls/1337/comments","review_comment_url":"https://api.github.com/repos/laravel/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/docs/issues/1337/comments","statuses_url":"https://api.github.com/repos/laravel/docs/statuses/b6954de882c177e8f36fadb10ff1924c39549e85","head":{"label":"flipflopsimsommer:patch-1","ref":"patch-1","sha":"b6954de882c177e8f36fadb10ff1924c39549e85","user":{"login":"flipflopsimsommer","id":2880362,"avatar_url":"https://avatars.githubusercontent.com/u/2880362?v=3","gravatar_id":"","url":"https://api.github.com/users/flipflopsimsommer","html_url":"https://github.com/flipflopsimsommer","followers_url":"https://api.github.com/users/flipflopsimsommer/followers","following_url":"https://api.github.com/users/flipflopsimsommer/following{/other_user}","gists_url":"https://api.github.com/users/flipflopsimsommer/gists{/gist_id}","starred_url":"https://api.github.com/users/flipflopsimsommer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flipflopsimsommer/subscriptions","organizations_url":"https://api.github.com/users/flipflopsimsommer/orgs","repos_url":"https://api.github.com/users/flipflopsimsommer/repos","events_url":"https://api.github.com/users/flipflopsimsommer/events{/privacy}","received_events_url":"https://api.github.com/users/flipflopsimsommer/received_events","type":"User","site_admin":false},"repo":{"id":34170127,"name":"docs","full_name":"flipflopsimsommer/docs","owner":{"login":"flipflopsimsommer","id":2880362,"avatar_url":"https://avatars.githubusercontent.com/u/2880362?v=3","gravatar_id":"","url":"https://api.github.com/users/flipflopsimsommer","html_url":"https://github.com/flipflopsimsommer","followers_url":"https://api.github.com/users/flipflopsimsommer/followers","following_url":"https://api.github.com/users/flipflopsimsommer/following{/other_user}","gists_url":"https://api.github.com/users/flipflopsimsommer/gists{/gist_id}","starred_url":"https://api.github.com/users/flipflopsimsommer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flipflopsimsommer/subscriptions","organizations_url":"https://api.github.com/users/flipflopsimsommer/orgs","repos_url":"https://api.github.com/users/flipflopsimsommer/repos","events_url":"https://api.github.com/users/flipflopsimsommer/events{/privacy}","received_events_url":"https://api.github.com/users/flipflopsimsommer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flipflopsimsommer/docs","description":"","fork":true,"url":"https://api.github.com/repos/flipflopsimsommer/docs","forks_url":"https://api.github.com/repos/flipflopsimsommer/docs/forks","keys_url":"https://api.github.com/repos/flipflopsimsommer/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flipflopsimsommer/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flipflopsimsommer/docs/teams","hooks_url":"https://api.github.com/repos/flipflopsimsommer/docs/hooks","issue_events_url":"https://api.github.com/repos/flipflopsimsommer/docs/issues/events{/number}","events_url":"https://api.github.com/repos/flipflopsimsommer/docs/events","assignees_url":"https://api.github.com/repos/flipflopsimsommer/docs/assignees{/user}","branches_url":"https://api.github.com/repos/flipflopsimsommer/docs/branches{/branch}","tags_url":"https://api.github.com/repos/flipflopsimsommer/docs/tags","blobs_url":"https://api.github.com/repos/flipflopsimsommer/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flipflopsimsommer/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flipflopsimsommer/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/flipflopsimsommer/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flipflopsimsommer/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/flipflopsimsommer/docs/languages","stargazers_url":"https://api.github.com/repos/flipflopsimsommer/docs/stargazers","contributors_url":"https://api.github.com/repos/flipflopsimsommer/docs/contributors","subscribers_url":"https://api.github.com/repos/flipflopsimsommer/docs/subscribers","subscription_url":"https://api.github.com/repos/flipflopsimsommer/docs/subscription","commits_url":"https://api.github.com/repos/flipflopsimsommer/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/flipflopsimsommer/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/flipflopsimsommer/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/flipflopsimsommer/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/flipflopsimsommer/docs/contents/{+path}","compare_url":"https://api.github.com/repos/flipflopsimsommer/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flipflopsimsommer/docs/merges","archive_url":"https://api.github.com/repos/flipflopsimsommer/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flipflopsimsommer/docs/downloads","issues_url":"https://api.github.com/repos/flipflopsimsommer/docs/issues{/number}","pulls_url":"https://api.github.com/repos/flipflopsimsommer/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/flipflopsimsommer/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/flipflopsimsommer/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flipflopsimsommer/docs/labels{/name}","releases_url":"https://api.github.com/repos/flipflopsimsommer/docs/releases{/id}","created_at":"2015-04-18T15:04:29Z","updated_at":"2015-04-18T08:04:09Z","pushed_at":"2015-04-18T15:09:54Z","git_url":"git://github.com/flipflopsimsommer/docs.git","ssh_url":"git@github.com:flipflopsimsommer/docs.git","clone_url":"https://github.com/flipflopsimsommer/docs.git","svn_url":"https://github.com/flipflopsimsommer/docs","homepage":"","size":13813,"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.0"}},"base":{"label":"laravel:5.0","ref":"5.0","sha":"581ae6d7a8d6b123c5f0af33b71664cac748a7fb","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}","created_at":"2013-01-10T19:08:45Z","updated_at":"2015-04-18T08:04:09Z","pushed_at":"2015-04-18T15:10:22Z","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":13813,"stargazers_count":450,"watchers_count":450,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1051,"mirror_url":null,"open_issues_count":51,"forks":1051,"open_issues":51,"watchers":450,"default_branch":"5.0"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/docs/pulls/1337"},"html":{"href":"https://github.com/laravel/docs/pull/1337"},"issue":{"href":"https://api.github.com/repos/laravel/docs/issues/1337"},"comments":{"href":"https://api.github.com/repos/laravel/docs/issues/1337/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/docs/pulls/1337/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/docs/pulls/1337/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/docs/statuses/b6954de882c177e8f36fadb10ff1924c39549e85"}}}}