Answer the question
In order to leave comments, you need to log in
How to get links of links when querying database in Laravel?
$category_group = CategoryGroup::with(['slides', 'categories'])
->where('path', '=', $category_group_alias)->first();
Answer the question
In order to leave comments, you need to log in
$category_group = CategoryGroup::with(['slides', 'categories' => function($query) {
$query->with(...);
}])
->where('path', '=', $category_group_alias)->first();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question