We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3347630 commit e3fc086Copy full SHA for e3fc086
app/Http/Controllers/DashboardController.php
@@ -13,7 +13,7 @@ public function __invoke(PieChartService $pieChartService)
13
{
14
return Inertia::render('Dashboard', [
15
'totalQuestions' => (int) PromptQuestion::whereHas('promptAnswer')->count(),
16
- 'dailyQuestions' => (int) PromptQuestion::whereHas('promptAnswer')->filterByDay(now())->count(),
+ 'dailyQuestions' => (int) PromptQuestion::whereHas('promptAnswer')->filterByDate(now())->count(),
17
'pieChartData' => $pieChartService
18
->data(PromptAnswer::class, 'subject_category')
19
->labels('subject_category')
0 commit comments