Fix event package display and add missing translations
- Correct Event->eventPackage relationship to HasOne - Add missing translations for event packages and table columns
This commit is contained in:
@@ -95,9 +95,9 @@ class Event extends Model
|
||||
->withTimestamps();
|
||||
}
|
||||
|
||||
public function eventPackage(): BelongsTo
|
||||
public function eventPackage(): HasOne
|
||||
{
|
||||
return $this->belongsTo(EventPackage::class);
|
||||
return $this->hasOne(EventPackage::class)->latestOfMany();
|
||||
}
|
||||
|
||||
public function eventPackages(): HasMany
|
||||
|
||||
Reference in New Issue
Block a user