zilong %!s(int64=4) %!d(string=hai) anos
pai
achega
a33e4303b4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);