categoryRepository->auth = true; $this->projectRepository->auth = true; } public function __invoke(Request $request): InertiaResponse { $categories = $this->categoryRepository->all(); $projects = $this->projectRepository->all(); return inertia('Dashboard/Index', compact('categories', 'projects')); } }