public function groupByCategory() { $categories = $this->category->all(); return view('front.archive.category', compact('categories')); }