category; if ($category->childrens->isEmpty()) { $parent = $category->parent; } $advert = Advert::where('category_id',73)->first(); return view('article.show', compact('article', 'parent', 'category','advert')); } }