dynamic elements and groups
This commit is contained in:
1 parent
80db5b6c6d
commit
0c3142f2fd
42 files changed
+798
-17
No files matched your search
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user