public function show($name) { $category = $this->categories->findRelationByName($name); return view('categories.show', compact('category')); }