{"action":"created","issue":{"url":"https://api.github.com/repos/moloquent/moloquent/issues/28","repository_url":"https://api.github.com/repos/moloquent/moloquent","labels_url":"https://api.github.com/repos/moloquent/moloquent/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/moloquent/moloquent/issues/28/comments","events_url":"https://api.github.com/repos/moloquent/moloquent/issues/28/events","html_url":"https://github.com/moloquent/moloquent/pull/28","id":182980484,"number":28,"title":"Fix Passport bridge","user":{"login":"mlanin","id":467159,"avatar_url":"https://avatars.githubusercontent.com/u/467159?v=3","gravatar_id":"","url":"https://api.github.com/users/mlanin","html_url":"https://github.com/mlanin","followers_url":"https://api.github.com/users/mlanin/followers","following_url":"https://api.github.com/users/mlanin/following{/other_user}","gists_url":"https://api.github.com/users/mlanin/gists{/gist_id}","starred_url":"https://api.github.com/users/mlanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlanin/subscriptions","organizations_url":"https://api.github.com/users/mlanin/orgs","repos_url":"https://api.github.com/users/mlanin/repos","events_url":"https://api.github.com/users/mlanin/events{/privacy}","received_events_url":"https://api.github.com/users/mlanin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pi0","id":5158436,"avatar_url":"https://avatars.githubusercontent.com/u/5158436?v=3","gravatar_id":"","url":"https://api.github.com/users/pi0","html_url":"https://github.com/pi0","followers_url":"https://api.github.com/users/pi0/followers","following_url":"https://api.github.com/users/pi0/following{/other_user}","gists_url":"https://api.github.com/users/pi0/gists{/gist_id}","starred_url":"https://api.github.com/users/pi0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pi0/subscriptions","organizations_url":"https://api.github.com/users/pi0/orgs","repos_url":"https://api.github.com/users/pi0/repos","events_url":"https://api.github.com/users/pi0/events{/privacy}","received_events_url":"https://api.github.com/users/pi0/received_events","type":"User","site_admin":false},"assignees":[{"login":"pi0","id":5158436,"avatar_url":"https://avatars.githubusercontent.com/u/5158436?v=3","gravatar_id":"","url":"https://api.github.com/users/pi0","html_url":"https://github.com/pi0","followers_url":"https://api.github.com/users/pi0/followers","following_url":"https://api.github.com/users/pi0/following{/other_user}","gists_url":"https://api.github.com/users/pi0/gists{/gist_id}","starred_url":"https://api.github.com/users/pi0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pi0/subscriptions","organizations_url":"https://api.github.com/users/pi0/orgs","repos_url":"https://api.github.com/users/pi0/repos","events_url":"https://api.github.com/users/pi0/events{/privacy}","received_events_url":"https://api.github.com/users/pi0/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-10-14T07:22:15Z","updated_at":"2016-10-14T07:26:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/moloquent/moloquent/pulls/28","html_url":"https://github.com/moloquent/moloquent/pull/28","diff_url":"https://github.com/moloquent/moloquent/pull/28.diff","patch_url":"https://github.com/moloquent/moloquent/pull/28.patch"},"body":"First of all, this fix lets us alias only models. And it is awesome, cause we don't have to watch for lots of original repo code.\r\n\r\nSecond, this fix will fully work only after this PR https://github.com/laravel/passport/pull/90 will be completely merged from master to 1.0 version. It still doesn't, but it is worth waiting.\r\n\r\nWhat this PR does is:\r\n- Lets `Token` model has `id` primary key, since is is not an autoincrementing value, we can relay on it as an ID and still have mongo's '_id' field.\r\n- Add `scopes` setter to `Token` model so that even if `TokenRepository` will try to save json-ed array of scopes, we will still have a normal array in the database.\r\n- And the last is gets rid of `array` caster for scopes in `Token` model, so that it will stop converting scopes to json back and forth.\r\n\r\nThat's it. And we don't have to overwrite any other classes."},"comment":{"url":"https://api.github.com/repos/moloquent/moloquent/issues/comments/253728633","html_url":"https://github.com/moloquent/moloquent/pull/28#issuecomment-253728633","issue_url":"https://api.github.com/repos/moloquent/moloquent/issues/28","id":253728633,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T07:26:35Z","updated_at":"2016-10-14T07:26:35Z","body":"\n[![Coverage Status](https://coveralls.io/builds/8333633/badge)](https://coveralls.io/builds/8333633)\n\nCoverage increased (+0.4%) to 90.538% when pulling **1a8d0a6e78b101596c1cbb83e5f45166e99f970c on mlanin-forks:feature/passport-support** into **d7c06bf21c96c7d8434743c996b97943458514bc on moloquent:master**.\n"}}
{"actor":{"display_login":"coveralls"}}