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

+11
View File
@@ -12,6 +12,7 @@ class ElementProvider extends Model
'element_id',
'provider_id',
'provider_element_id',
'add_by_method_id',
'name',
];
@@ -20,6 +21,11 @@ class ElementProvider extends Model
return $this->belongsTo(Sport::class);
}
public function element_group()
{
return $this->belongsTo(ElementGroup::class, 'element_id', 'element_id');
}
public function element()
{
return $this->belongsTo(Element::class);
@@ -29,4 +35,9 @@ class ElementProvider extends Model
{
return $this->belongsTo(Provider::class);
}
public function add_by_method()
{
return $this->belongsTo(AddByMethod::class);
}
}