{"action":"closed","issue":{"url":"https://api.github.com/repos/Bosnadev/Repositories/issues/48","labels_url":"https://api.github.com/repos/Bosnadev/Repositories/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/Bosnadev/Repositories/issues/48/comments","events_url":"https://api.github.com/repos/Bosnadev/Repositories/issues/48/events","html_url":"https://github.com/Bosnadev/Repositories/issues/48","id":104226565,"number":48,"title":"Call to undefined method Illuminate\\Database\\Query\\Builder::sync()","user":{"login":"ghprod","id":1922652,"avatar_url":"https://avatars.githubusercontent.com/u/1922652?v=3","gravatar_id":"","url":"https://api.github.com/users/ghprod","html_url":"https://github.com/ghprod","followers_url":"https://api.github.com/users/ghprod/followers","following_url":"https://api.github.com/users/ghprod/following{/other_user}","gists_url":"https://api.github.com/users/ghprod/gists{/gist_id}","starred_url":"https://api.github.com/users/ghprod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghprod/subscriptions","organizations_url":"https://api.github.com/users/ghprod/orgs","repos_url":"https://api.github.com/users/ghprod/repos","events_url":"https://api.github.com/users/ghprod/events{/privacy}","received_events_url":"https://api.github.com/users/ghprod/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T09:37:45Z","updated_at":"2015-09-01T10:10:08Z","closed_at":"2015-09-01T10:10:08Z","body":"Hi.. i have code like this where `attachments` is `morphMany`\r\n\r\n```php\r\n$update = $this->repository->updateRich($input, $id);\r\n\r\n$update->attachments()->sync($attachmentIds);\r\n```\r\n\r\nBut its throws `Call to undefined method Illuminate\\Database\\Query\\Builder::sync()`\r\n\r\nSeems like its should return an instance of `Illuminate \\ Database \\ Eloquent \\ Model `\r\n\r\nAny idea?\r\n\r\nThanks\r\n"}}