{"action":"opened","number":765,"pull_request":{"url":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/765","id":61207180,"html_url":"https://github.com/jenssegers/laravel-mongodb/pull/765","diff_url":"https://github.com/jenssegers/laravel-mongodb/pull/765.diff","patch_url":"https://github.com/jenssegers/laravel-mongodb/pull/765.patch","issue_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/765","number":765,"state":"open","locked":false,"title":"Change Connection to ConnectionContract","user":{"login":"timgws","id":1050232,"avatar_url":"https://avatars.githubusercontent.com/u/1050232?v=3","gravatar_id":"","url":"https://api.github.com/users/timgws","html_url":"https://github.com/timgws","followers_url":"https://api.github.com/users/timgws/followers","following_url":"https://api.github.com/users/timgws/following{/other_user}","gists_url":"https://api.github.com/users/timgws/gists{/gist_id}","starred_url":"https://api.github.com/users/timgws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgws/subscriptions","organizations_url":"https://api.github.com/users/timgws/orgs","repos_url":"https://api.github.com/users/timgws/repos","events_url":"https://api.github.com/users/timgws/events{/privacy}","received_events_url":"https://api.github.com/users/timgws/received_events","type":"User","site_admin":false},"body":"* Add an interface (`ConnectionContract`) so that an alternative class can be put in place of `Jenssegers\\Mongodb\\Connection`.\r\n\r\nSee https://github.com/timgws/QueryBuilderParser/commit/430e7c85739f072f459599891ae785b477961460#diff-ed82b7952fe1424f6b488f71c42cd7d4R1 for a use-case.","created_at":"2016-03-01T08:16:07Z","updated_at":"2016-03-01T08:16:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07c716e98eae30dda31fa7522a073151ccbb6cce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/765/commits","review_comments_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/765/comments","review_comment_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/765/comments","statuses_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/statuses/0a81460c37fd4fd8833892bcff8241d552720f15","head":{"label":"timgws:contract-for-connection","ref":"contract-for-connection","sha":"0a81460c37fd4fd8833892bcff8241d552720f15","user":{"login":"timgws","id":1050232,"avatar_url":"https://avatars.githubusercontent.com/u/1050232?v=3","gravatar_id":"","url":"https://api.github.com/users/timgws","html_url":"https://github.com/timgws","followers_url":"https://api.github.com/users/timgws/followers","following_url":"https://api.github.com/users/timgws/following{/other_user}","gists_url":"https://api.github.com/users/timgws/gists{/gist_id}","starred_url":"https://api.github.com/users/timgws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgws/subscriptions","organizations_url":"https://api.github.com/users/timgws/orgs","repos_url":"https://api.github.com/users/timgws/repos","events_url":"https://api.github.com/users/timgws/events{/privacy}","received_events_url":"https://api.github.com/users/timgws/received_events","type":"User","site_admin":false},"repo":{"id":52845832,"name":"laravel-mongodb","full_name":"timgws/laravel-mongodb","owner":{"login":"timgws","id":1050232,"avatar_url":"https://avatars.githubusercontent.com/u/1050232?v=3","gravatar_id":"","url":"https://api.github.com/users/timgws","html_url":"https://github.com/timgws","followers_url":"https://api.github.com/users/timgws/followers","following_url":"https://api.github.com/users/timgws/following{/other_user}","gists_url":"https://api.github.com/users/timgws/gists{/gist_id}","starred_url":"https://api.github.com/users/timgws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgws/subscriptions","organizations_url":"https://api.github.com/users/timgws/orgs","repos_url":"https://api.github.com/users/timgws/repos","events_url":"https://api.github.com/users/timgws/events{/privacy}","received_events_url":"https://api.github.com/users/timgws/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timgws/laravel-mongodb","description":"A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)","fork":true,"url":"https://api.github.com/repos/timgws/laravel-mongodb","forks_url":"https://api.github.com/repos/timgws/laravel-mongodb/forks","keys_url":"https://api.github.com/repos/timgws/laravel-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timgws/laravel-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timgws/laravel-mongodb/teams","hooks_url":"https://api.github.com/repos/timgws/laravel-mongodb/hooks","issue_events_url":"https://api.github.com/repos/timgws/laravel-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/timgws/laravel-mongodb/events","assignees_url":"https://api.github.com/repos/timgws/laravel-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/timgws/laravel-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/timgws/laravel-mongodb/tags","blobs_url":"https://api.github.com/repos/timgws/laravel-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timgws/laravel-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timgws/laravel-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/timgws/laravel-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timgws/laravel-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/timgws/laravel-mongodb/languages","stargazers_url":"https://api.github.com/repos/timgws/laravel-mongodb/stargazers","contributors_url":"https://api.github.com/repos/timgws/laravel-mongodb/contributors","subscribers_url":"https://api.github.com/repos/timgws/laravel-mongodb/subscribers","subscription_url":"https://api.github.com/repos/timgws/laravel-mongodb/subscription","commits_url":"https://api.github.com/repos/timgws/laravel-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/timgws/laravel-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/timgws/laravel-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/timgws/laravel-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/timgws/laravel-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/timgws/laravel-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timgws/laravel-mongodb/merges","archive_url":"https://api.github.com/repos/timgws/laravel-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timgws/laravel-mongodb/downloads","issues_url":"https://api.github.com/repos/timgws/laravel-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/timgws/laravel-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/timgws/laravel-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/timgws/laravel-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timgws/laravel-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/timgws/laravel-mongodb/releases{/id}","deployments_url":"https://api.github.com/repos/timgws/laravel-mongodb/deployments","created_at":"2016-03-01T03:41:56Z","updated_at":"2016-03-01T03:41:57Z","pushed_at":"2016-03-01T08:15:49Z","git_url":"git://github.com/timgws/laravel-mongodb.git","ssh_url":"git@github.com:timgws/laravel-mongodb.git","clone_url":"https://github.com/timgws/laravel-mongodb.git","svn_url":"https://github.com/timgws/laravel-mongodb","homepage":"https://jenssegers.com","size":1062,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenssegers:master","ref":"master","sha":"9f64e2179716ff1dbda8d9efcccfd03f506942a6","user":{"login":"jenssegers","id":194377,"avatar_url":"https://avatars.githubusercontent.com/u/194377?v=3","gravatar_id":"","url":"https://api.github.com/users/jenssegers","html_url":"https://github.com/jenssegers","followers_url":"https://api.github.com/users/jenssegers/followers","following_url":"https://api.github.com/users/jenssegers/following{/other_user}","gists_url":"https://api.github.com/users/jenssegers/gists{/gist_id}","starred_url":"https://api.github.com/users/jenssegers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenssegers/subscriptions","organizations_url":"https://api.github.com/users/jenssegers/orgs","repos_url":"https://api.github.com/users/jenssegers/repos","events_url":"https://api.github.com/users/jenssegers/events{/privacy}","received_events_url":"https://api.github.com/users/jenssegers/received_events","type":"User","site_admin":false},"repo":{"id":9131292,"name":"laravel-mongodb","full_name":"jenssegers/laravel-mongodb","owner":{"login":"jenssegers","id":194377,"avatar_url":"https://avatars.githubusercontent.com/u/194377?v=3","gravatar_id":"","url":"https://api.github.com/users/jenssegers","html_url":"https://github.com/jenssegers","followers_url":"https://api.github.com/users/jenssegers/followers","following_url":"https://api.github.com/users/jenssegers/following{/other_user}","gists_url":"https://api.github.com/users/jenssegers/gists{/gist_id}","starred_url":"https://api.github.com/users/jenssegers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenssegers/subscriptions","organizations_url":"https://api.github.com/users/jenssegers/orgs","repos_url":"https://api.github.com/users/jenssegers/repos","events_url":"https://api.github.com/users/jenssegers/events{/privacy}","received_events_url":"https://api.github.com/users/jenssegers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jenssegers/laravel-mongodb","description":"A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)","fork":false,"url":"https://api.github.com/repos/jenssegers/laravel-mongodb","forks_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/forks","keys_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/teams","hooks_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/hooks","issue_events_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/events","assignees_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/tags","blobs_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/languages","stargazers_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/stargazers","contributors_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/contributors","subscribers_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/subscribers","subscription_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/subscription","commits_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/merges","archive_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/downloads","issues_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/releases{/id}","deployments_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/deployments","created_at":"2013-03-31T14:31:04Z","updated_at":"2016-02-29T22:57:24Z","pushed_at":"2016-03-01T08:16:07Z","git_url":"git://github.com/jenssegers/laravel-mongodb.git","ssh_url":"git@github.com:jenssegers/laravel-mongodb.git","clone_url":"https://github.com/jenssegers/laravel-mongodb.git","svn_url":"https://github.com/jenssegers/laravel-mongodb","homepage":"https://jenssegers.com","size":1641,"stargazers_count":1593,"watchers_count":1593,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":398,"mirror_url":null,"open_issues_count":206,"forks":398,"open_issues":206,"watchers":1593,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/765"},"html":{"href":"https://github.com/jenssegers/laravel-mongodb/pull/765"},"issue":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/765"},"comments":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/765/comments"},"review_comments":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/765/comments"},"review_comment":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/765/commits"},"statuses":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/statuses/0a81460c37fd4fd8833892bcff8241d552720f15"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":82,"deletions":6,"changed_files":4}}