wip countries

This commit is contained in:
salam committed 2025-08-30 08:15:10 +02:00
1 parent 641b362752
commit 1b9a65b25a
23 files changed
+127755 -27137

No files matched your search

+1 -1
View File
@@ -14,6 +14,6 @@ class Country extends Model
'cc',
'numeric',
'txid',
'tx_only',
'other',
];
}
+19 -13
View File
@@ -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);
}
}