| 1 | <?php |
||
| 8 | class Competitor extends Fighter |
||
| 9 | { |
||
| 10 | use SoftDeletes; |
||
| 11 | protected $DATES = ['created_at', 'updated_at', 'deleted_at']; |
||
| 12 | |||
| 13 | protected $table = 'competitor'; |
||
| 14 | public $timestamps = true; |
||
| 15 | protected $fillable = [ |
||
| 16 | 'tournament_category_id', |
||
| 17 | 'user_id', |
||
| 18 | 'confirmed', |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get User from Competitor. |
||
| 23 | * |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | public function user() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return null|string |
||
| 33 | */ |
||
| 34 | public function getNameAttribute() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return null|string |
||
| 41 | */ |
||
| 42 | public function getFullName() //TODO Should remove get prefix |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return null|string |
||
| 49 | */ |
||
| 50 | private function defaultName() |
||
| 57 | |||
| 58 | } |
||
| 59 |