public function getUrlShow($id) { $category = Category::findOrFail($id); return route('category.show', $category->slug); }