Hi,
have you tried eager loading the posts and their statuses?
$user = User::with('posts.status')->find(17);
foreach($user->posts as $up){
echo $up->status->name;
}
wow very simple, thanks flammel, it works
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community