| 1 | <?php |
||
| 9 | class Competitor extends Fighter |
||
| 10 | { |
||
| 11 | use SoftDeletes; |
||
| 12 | protected $DATES = ['created_at', 'updated_at', 'deleted_at']; |
||
| 13 | |||
| 14 | protected $table = 'competitor'; |
||
| 15 | public $timestamps = true; |
||
| 16 | protected $fillable = [ |
||
| 17 | 'tournament_category_id', |
||
| 18 | 'user_id', |
||
| 19 | 'confirmed', |
||
| 20 | ]; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get User from Competitor. |
||
| 24 | * |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | public function user() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
||
| 34 | */ |
||
| 35 | public function fightersGroups() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return null|string |
||
| 42 | */ |
||
| 43 | public function getName() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return null|string |
||
| 50 | */ |
||
| 51 | public function getFullName() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return null|string |
||
| 58 | */ |
||
| 59 | private function defaultName() |
||
| 64 | |||
| 65 | } |
||
| 66 |