mapper wip
This commit is contained in:
1 parent
1af6eec5e9
commit
35a6e605b9
4 files changed
+118
-85
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user