type == 'user2d' || $this->type == 'user3d') return $this->belongsTo(User::class, 'target'); elseif($this->type == 'asset2d' || $this->type == 'asset3d') return $this->belongsTo(Asset::class, 'target'); } }