This commit is contained in:
salam committed 2026-10-04 15:25:03 +02:00
1 parent 9bcd4432c6
commit 6f92f9e1d5
1209 files changed
+220940

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use MongoDB\Laravel\Eloquent\HybridRelations;
class SofaScoreRosa extends Model
{
use HybridRelations;
protected $connection = 'mariadb';
protected $fillable = [
'sport_id',
'cc',
'country_id',
'ss_team_id',
'ss_team_name',
'ss_tournament_id',
'slug',
'is_active',
'grapped',
'disabled',
];
public function country()
{
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');
}
}