hasOne(UserModel::class, 'id', 'user_id'); } public function toUser() { return $this->hasOne(UserModel::class, 'id', 'to_user_id'); } }