Closed
Description
Hi!
First thank you for the amazing work!
When getting a post
, for example, I get the entire object, like:
$post = Post::find('52827b589a1ef3c65c0041a7');
echo $post->title;
But when I have comments "inside" posts - not using hasMany - I got the comments as array and not object:
$comments = $post->comments;
foreach ($comments as $comment) {
echo $comment['author']; // will be better $comment->author
}
Does the library have some "config" to ensure returning "object" as default?
Thank you so much!
Metadata
Metadata
Assignees
Labels
No labels