$posts = Post::where('category_id', '=', 5)->with(array(
'comments' => function($query) {
$query->with(array(
'user' => function($query) {
$query->with(array(
'categories'));
}));
},
'likings' => function($query) {
$query->with(array(
'user'));
}
))->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community