belongsTo(ModVersion::class); } /** * The relationship between the mod dependency and the resolved dependency. */ public function resolvedDependencies(): HasMany { return $this->hasMany(ModResolvedDependency::class, 'dependency_id') ->chaperone(); } /** * The relationship between the mod dependency and the dependent mod. */ public function dependentMod(): BelongsTo { return $this->belongsTo(Mod::class, 'dependent_mod_id'); } }