zilong 4 anos atrás
pai
commit
bc821f3e32
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Models/Docter.php

+ 1 - 1
app/Models/Docter.php

xqd
@@ -98,7 +98,7 @@ class Docter extends BaseModel
 
     public function getAppointPriceAttribute()
     {
-        $appoint_price = DocterSetting::where('docter_id', $this->id)->where('type', 1)->where('status', 2)->value('appoint_price');
+        $appoint_price = DocterSetting::where('docter_id', $this->id)->where('type', 1)->where('status', 2)->orderBy('id', 'asc')->value('appoint_price');
         return $appoint_price*100;
     }