我正在嘗試獲得當前 (P) 學生身份。然后我想計算一個月內在場的學生總數。不幸的是,我的代碼不能正常工作。$jan_count = Attendance::with(['level', 'student'])
->where(['level_id' => $id, 'status' => 'P'])
->whereMonth('days', '01')
->count()
->get()
->groupBy('student_id');
- 2 回答
- 0 關注
- 204 瀏覽
添加回答
舉報
0/150
提交
取消