categoryRepository->auth = true; } public function __invoke(Request $request): View { $categories = $this->categoryRepository->all(); $projects = $this->projectRepository->all(); return view('dashboard.home', compact('categories', 'projects')); } }