ChenWuJie %!s(int64=4) %!d(string=hai) anos
pai
achega
70dbda416e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Models/Patient.php

+ 1 - 1
app/Models/Patient.php

xqd
@@ -43,6 +43,6 @@ class Patient extends BaseModel
         return $text;
     }
     public function users(){
-        return $this->hasOne(User::class,'id','user_id');
+        return $this->belongsTo(User::class,'id','user_id');
     }
 }