| 1 | <?php |
||
| 9 | class Player extends DsManagerOrm |
||
| 10 | {
|
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $table = 'players'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $fillable = [ |
||
| 21 | 'name', |
||
| 22 | 'surname', |
||
| 23 | 'age', |
||
| 24 | 'nationality', |
||
| 25 | 'skillAvg', |
||
| 26 | 'wageReq', |
||
| 27 | 'val', |
||
| 28 | 'role', |
||
| 29 | 'team_id' |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 34 | */ |
||
| 35 | public function team() |
||
| 39 | |||
| 40 | public function matches() |
||
| 46 | |||
| 47 | public function goals() |
||
| 53 | |||
| 54 | } |