protected function getCategory() { $path = $this->segment(1); $this->category = Category::findAdminCategory($path); }