21 lines
368 B
PHP
21 lines
368 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class SofaScoreDayTournament extends Model
|
|
{
|
|
protected $fillable = [
|
|
'id',
|
|
'tournament_id',
|
|
'sport_id',
|
|
'day',
|
|
];
|
|
|
|
public function tournament()
|
|
{
|
|
return $this->belongsTo(SofaScoreTournament::class, 'tournament_id', 'tournament_id');
|
|
}
|
|
}
|