db wip
This commit is contained in:
1 parent
68837ea1f4
commit
f8350fd319
8 files changed
+23
-43
No files matched your search
@@ -33,6 +33,11 @@ class Event extends Model
|
||||
static::addGlobalScope(new SportScope);
|
||||
}
|
||||
|
||||
public function provider()
|
||||
{
|
||||
return $this->belongsTo(Provider::class);
|
||||
}
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
@@ -40,7 +45,7 @@ class Event extends Model
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class, 'country_id', 'tx_id')->where('disabled', 0)->where('is_country', 1);
|
||||
return $this->belongsTo(Country::class)->where('disabled', 0)->where('is_country', 1);
|
||||
}
|
||||
|
||||
public function group()
|
||||
|
||||
Reference in new issue
Block a user