zilong 4 years ago
parent
commit
a33e4303b4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Models/Patient.php

+ 2 - 2
app/Models/Patient.php

xqd
@@ -10,8 +10,8 @@ namespace App\Models;
 
 class Patient extends BaseModel
 {
-    protected $appends = ['is_collect'];
-    
+    protected $appends = ['age'];
+
     public function getAgeAttribute()
     {
         return birthday_to_age($this->birthday);