浏览代码

Hide past appointments in patients list

Vijayakrishnan Krishnan 4 年之前
父节点
当前提交
7b857a684e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/Client.php

+ 1 - 1
app/Models/Client.php

@@ -89,7 +89,7 @@ class Client extends Model
 
 
     public function upcomingAppointments() {
     public function upcomingAppointments() {
         return $this->hasMany(Appointment::class, 'client_id', 'id')
         return $this->hasMany(Appointment::class, 'client_id', 'id')
-            ->where('start_time', '>=', date('Y-m-d'))
+            ->where('start_time', '>', date('Y-m-d H:i:s'))
             ->orderBy('start_time', 'desc');
             ->orderBy('start_time', 'desc');
     }
     }