| 1 | <?php |
||
| 8 | class Member extends Model implements Authenticatable |
||
| 9 | { |
||
| 10 | use \Illuminate\Auth\Authenticatable; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The database table used by the model. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $table = 'members'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The attributes that are mass assignable. |
||
| 21 | * |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $fillable = ['name', 'facebookId']; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The attributes excluded from the model's JSON form. |
||
| 28 | * |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | protected $hidden = []; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var bool |
||
| 35 | */ |
||
| 36 | public $timestamps = true; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 40 | */ |
||
| 41 | public function teamMembers() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return \Illuminate\Database\Eloquent\Relations\HasManyThrough |
||
| 48 | */ |
||
| 49 | public function tournamentTeams() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 61 | */ |
||
| 62 | public function tokens() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 69 | */ |
||
| 70 | public function tournaments() |
||
| 74 | } |
||
| 75 |