belongsTo(User::class); } public function license(): BelongsTo { return $this->belongsTo(License::class); } public function versions(): HasMany { return $this->hasMany(ModVersion::class); } public function versionWithHighestSptVersion() { return $this->hasOne(ModVersion::class)->highestSptVersion(); } protected function slug(): Attribute { return Attribute::make( get: fn (string $value) => strtolower($value), set: fn (string $value) => Str::slug($value), ); } }