{"action":"created","issue":{"url":"https://api.github.com/repos/etrepat/baum/issues/215","repository_url":"https://api.github.com/repos/etrepat/baum","labels_url":"https://api.github.com/repos/etrepat/baum/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/etrepat/baum/issues/215/comments","events_url":"https://api.github.com/repos/etrepat/baum/issues/215/events","html_url":"https://github.com/etrepat/baum/issues/215","id":140599307,"number":215,"title":"Eloquent ->get() does not work","user":{"login":"michelkal","id":7080438,"avatar_url":"https://avatars.githubusercontent.com/u/7080438?v=3","gravatar_id":"","url":"https://api.github.com/users/michelkal","html_url":"https://github.com/michelkal","followers_url":"https://api.github.com/users/michelkal/followers","following_url":"https://api.github.com/users/michelkal/following{/other_user}","gists_url":"https://api.github.com/users/michelkal/gists{/gist_id}","starred_url":"https://api.github.com/users/michelkal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelkal/subscriptions","organizations_url":"https://api.github.com/users/michelkal/orgs","repos_url":"https://api.github.com/users/michelkal/repos","events_url":"https://api.github.com/users/michelkal/events{/privacy}","received_events_url":"https://api.github.com/users/michelkal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-14T07:43:37Z","updated_at":"2016-03-18T03:25:51Z","closed_at":null,"body":"Hello there!\r\nUsing Laravel `->get()` does not return any value and baum `getDescendants()` or other similar methods return `Method does not exist`, but when using Eloquent `->first()` this baum methods work fine.\r\nAny idea on this?"},"comment":{"url":"https://api.github.com/repos/etrepat/baum/issues/comments/198184780","html_url":"https://github.com/etrepat/baum/issues/215#issuecomment-198184780","issue_url":"https://api.github.com/repos/etrepat/baum/issues/215","id":198184780,"user":{"login":"dcanaud","id":627114,"avatar_url":"https://avatars.githubusercontent.com/u/627114?v=3","gravatar_id":"","url":"https://api.github.com/users/dcanaud","html_url":"https://github.com/dcanaud","followers_url":"https://api.github.com/users/dcanaud/followers","following_url":"https://api.github.com/users/dcanaud/following{/other_user}","gists_url":"https://api.github.com/users/dcanaud/gists{/gist_id}","starred_url":"https://api.github.com/users/dcanaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcanaud/subscriptions","organizations_url":"https://api.github.com/users/dcanaud/orgs","repos_url":"https://api.github.com/users/dcanaud/repos","events_url":"https://api.github.com/users/dcanaud/events{/privacy}","received_events_url":"https://api.github.com/users/dcanaud/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T03:25:51Z","updated_at":"2016-03-18T03:25:51Z","body":"getDescendants() already returns an eloquent collection, that's why you can call the first() function. Try to use descendants()->get(); Fyi they both get the same results."}}