wip
This commit is contained in:
1 parent
8c235ef82c
commit
acf74c5e82
8 files changed
+593
-90
No files matched your search
@@ -7,14 +7,23 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class SofaScoreRosa extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'sport_id',
|
||||
'ssteam_id',
|
||||
'ssteam_name',
|
||||
'ss_tournament_id',
|
||||
'country_id',
|
||||
'is_active',
|
||||
'grapped',
|
||||
'disabled',
|
||||
];
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function tournament()
|
||||
{
|
||||
return $this->belongsTo(SofaScoreTournament::class, 'ss_tournament_id', 'tournament_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user