1 | <?php |
||
9 | class LeagueRound extends DsManagerOrm |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $table = 'league_rounds'; |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $fillable = [ |
||
21 | 'league_id', |
||
22 | 'day', |
||
23 | 'simulated' |
||
24 | ]; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $casts = [ |
||
30 | 'simulated' => 'boolean' |
||
31 | ]; |
||
32 | |||
33 | /** |
||
34 | * @return \Illuminate\Database\Eloquent\Relations\HasOne |
||
35 | */ |
||
36 | public function league() |
||
40 | |||
41 | /** |
||
42 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
43 | */ |
||
44 | public function matches() |
||
48 | |||
49 | /** |
||
50 | * @param $query |
||
51 | * @return mixed |
||
52 | */ |
||
53 | public function scopeComplete($query) |
||
62 | } |