RepositoryType::class, ]; } public function organisation(): BelongsTo { return $this->belongsTo(Organisation::class); } public function instances(): HasMany { return $this->hasMany(Instance::class); } public function servers(): HasManyThrough { return $this->hasManyThrough(Server::class, Instance::class); } public function deployments(): MorphMany { return $this->morphMany(Deployment::class, 'target'); } }