hasOne(User::class,'id','user_id'); } public function shareuser(){ return $this->hasOne(User::class,'mobile','phone'); } }