wip fix
This commit is contained in:
1 parent
9bcd4432c6
commit
6f92f9e1d5
1209 files changed
+220940
No files matched your search
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user