This commit is contained in:
salam committed 2026-08-25 08:03:22 +02:00
1 parent d316d486b9
commit c6c5cdc1b1
21 files changed
+620 -34

No files matched your search

+3 -5
View File
@@ -10,11 +10,9 @@ class SofaScoreCategory extends Model
'id',
'name',
'slug',
'season_mode',
'flag',
'in_soccer',
'country_id',
];
public function country()
{
return $this->belongsTo(Country::class, 'country_id', 'id');
}
}
+5
View File
@@ -29,6 +29,11 @@ class SofaScoreRosa extends Model
return $this->belongsTo(Country::class);
}
public function sofascore_category()
{
return $this->belongsTo(SofaScoreCategory::class, 'country_id', 'country_id')->where('in_soccer', 1);
}
public function tournament_rosa()
{
return $this->belongsTo(SofaScoreRosaTournament::class, 'ss_team_id', 'ss_team_id');