| 1 | <?php |
||
| 9 | class Match extends DsManagerOrm |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $table = 'matches'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $fillable = [ |
||
| 21 | 'home_team_id', |
||
| 22 | 'away_team_id' |
||
| 23 | ]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $hidden = [ |
||
| 29 | 'home_team_id', |
||
| 30 | 'away_team_id', |
||
| 31 | 'created_at', |
||
| 32 | 'updated_at', |
||
| 33 | 'info' |
||
| 34 | ]; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var array |
||
| 38 | */ |
||
| 39 | protected $casts = [ |
||
| 40 | 'simulated' => 'boolean' |
||
| 41 | ]; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 45 | */ |
||
| 46 | public function homeTeam() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 53 | */ |
||
| 54 | public function awayTeam() |
||
| 58 | |||
| 59 | } |