wip countries
This commit is contained in:
1 parent
641b362752
commit
1b9a65b25a
23 files changed
+127755
-27137
No files matched your search
@@ -14,6 +14,6 @@ class Country extends Model
|
||||
'cc',
|
||||
'numeric',
|
||||
'txid',
|
||||
'tx_only',
|
||||
'other',
|
||||
];
|
||||
}
|
||||
+19
-13
@@ -9,6 +9,10 @@ class Event extends Model
|
||||
protected $fillable = [
|
||||
'starttime',
|
||||
'sport_id',
|
||||
'country_id',
|
||||
'liga_id',
|
||||
'home_id',
|
||||
'away_id',
|
||||
'provider_id',
|
||||
'txodds_id',
|
||||
'betaid_id',
|
||||
@@ -17,11 +21,23 @@ class Event extends Model
|
||||
'magken_id',
|
||||
'lognig_id',
|
||||
'logcol_id',
|
||||
'liga_id',
|
||||
'home_id',
|
||||
'away_id',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function liga()
|
||||
{
|
||||
return $this->belongsTo(Liga::class);
|
||||
}
|
||||
|
||||
public function home()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
@@ -31,14 +47,4 @@ class Event extends Model
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
}
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function liga()
|
||||
{
|
||||
return $this->belongsTo(Liga::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user