Retrieving Relationships
var posts = user.getPosts();var newestPosts = user
.posts()
.orderBy( "publishedDate", "desc" )
.get();// This will only find posts the user has written.
var post = user.posts().findOrFail( rc.id );Last updated
Was this helpful?