/** * Display the specified resource. * * @param int $id * @return \Illuminate\View\View */ public function show(Brand $brand) { $products = $brand->products()->latest('published_at')->published()->get(); return view('admin.products.index', compact('products')); }