dynamic elements and groups

This commit is contained in:
salam committed 2026-02-20 12:15:43 +01:00
1 parent 80db5b6c6d
commit 0c3142f2fd
42 files changed
+798 -17

No files matched your search

+10
View File
@@ -17,4 +17,14 @@ class Element extends Model
{
return $this->belongsTo(Sport::class);
}
public function country()
{
return $this->belongsTo(Country::class);
}
public function element_group()
{
return $this->belongsTo(ElementGroup::class, 'id', 'element_id');
}
}