| 1 | <?php |
||
| 13 | class User extends UserModel |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The database table used by the model. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $table = 'users'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The attributes that are mass assignable. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $fillable = [ |
||
| 29 | 'name', |
||
| 30 | 'email', |
||
| 31 | 'password', |
||
| 32 | 'device', |
||
| 33 | 'platform', |
||
| 34 | 'confirmed', |
||
| 35 | 'gender', |
||
| 36 | 'birth', |
||
| 37 | 'social_provider', |
||
| 38 | 'social_token', |
||
| 39 | 'social_refresh_token', |
||
| 40 | 'social_expires_in', |
||
| 41 | 'social_token_secret', |
||
| 42 | 'social_id', |
||
| 43 | 'social_avatar', |
||
| 44 | 'social_avatar_original', |
||
| 45 | 'social_nickname', |
||
| 46 | ]; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * The dates attributes. |
||
| 50 | * |
||
| 51 | * @var array |
||
| 52 | */ |
||
| 53 | protected $dates = [ |
||
| 54 | 'created_at', |
||
| 55 | 'updated_at', |
||
| 56 | 'deleted_at', |
||
| 57 | ]; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * The attributes excluded from the model's JSON form. |
||
| 61 | * |
||
| 62 | * @var array |
||
| 63 | */ |
||
| 64 | protected $hidden = [ |
||
| 65 | 'password', |
||
| 66 | 'remember_token', |
||
| 67 | 'token', |
||
| 68 | ]; |
||
| 69 | |||
| 70 | public function stripeAccount() |
||
| 74 | |||
| 75 | } |
||
| 76 |