repo = $repo; } public function home() { $projectsCount = Project::select(DB::raw('status_id, count(id) as count')) ->groupBy('status_id') ->where('owner_id', auth()->id()) ->pluck('count','status_id') ->all(); return view('pages.home', compact('projectsCount')); } public function about() { return view('pages.about'); } }