master
cody 6 months ago
parent 751c4f1429
commit 506c2c3471

@ -41,7 +41,7 @@ class User extends Authenticatable implements Auditable
{ {
$now = date('Y-m-d H:i:s'); $now = date('Y-m-d H:i:s');
$courseAppointmentTotals = CourseAppointmentTotal::where('user_id', $this->id) $courseAppointmentTotals = CourseAppointmentTotal::where('user_id', $this->id)
->where('start_time', '<=', $now) //->where('start_time', '<=', $now)
->where('end_time', '>=', $now) ->where('end_time', '>=', $now)
->sum('total'); ->sum('total');
return $courseAppointmentTotals; return $courseAppointmentTotals;

Loading…
Cancel
Save