1 | <?php |
||
9 | class MatchPlayer extends DsManagerOrm |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $table = 'match_players'; |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $fillable = [ |
||
21 | 'match_id', |
||
22 | 'team_id', |
||
23 | 'player_id', |
||
24 | 'goals', |
||
25 | 'vote' |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
30 | */ |
||
31 | public function player() |
||
35 | |||
36 | /** |
||
37 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
38 | */ |
||
39 | public function team() |
||
43 | |||
44 | /** |
||
45 | * @param $query |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function scopeComplete($query){ |
||
54 | |||
55 | } |