mapper wip

This commit is contained in:
salam committed 2026-02-13 13:33:17 +01:00
1 parent 1af6eec5e9
commit 35a6e605b9
4 files changed
+118 -85

No files matched your search

+5
View File
@@ -19,6 +19,11 @@ class CompetitionGroup extends Model
return $this->belongsTo(Event::class, 'id', 'competition_group_id');
}
public function getFullNameAttribute()
{
return $this->country->name.' '.$this->name;
}
public function sport()
{
return $this->belongsTo(Sport::class);