User.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace App;
  3. use Illuminate\Notifications\Notifiable;
  4. use Illuminate\Contracts\Auth\MustVerifyEmail;
  5. use Illuminate\Foundation\Auth\User as Authenticatable;
  6. /**
  7. * App\User
  8. *
  9. * @property int $id
  10. * @property string $name
  11. * @property string $email
  12. * @property string $password
  13. * @property string|null $remember_token
  14. * @property \Illuminate\Support\Carbon|null $created_at
  15. * @property \Illuminate\Support\Carbon|null $updated_at
  16. * @property int|null $roles_id
  17. * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
  18. * @property-read int|null $notifications_count
  19. * @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
  20. * @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
  21. * @method static \Illuminate\Database\Eloquent\Builder|User query()
  22. * @method static \Illuminate\Database\Eloquent\Builder|User whereCreatedAt($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|User whereEmail($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|User whereId($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|User whereName($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|User wherePassword($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|User whereRememberToken($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|User whereRolesId($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value)
  30. * @mixin \Eloquent
  31. * @property string|null $phone 登录手机号
  32. * @property int|null $status 状态 1启用 2停用
  33. * @property int|null $is_del 是否删除 0否1是
  34. * @method static \Illuminate\Database\Eloquent\Builder|User whereIsDel($value)
  35. * @method static \Illuminate\Database\Eloquent\Builder|User wherePhone($value)
  36. * @method static \Illuminate\Database\Eloquent\Builder|User whereStatus($value)
  37. * @property string|null $api_token apitoken
  38. * @method static \Illuminate\Database\Eloquent\Builder|User whereApiToken($value)
  39. */
  40. class User extends Authenticatable
  41. {
  42. use Notifiable;
  43. /**
  44. * The attributes that are mass assignable.
  45. *
  46. * @var array
  47. */
  48. protected $fillable = [
  49. 'name', 'email', 'password',
  50. ];
  51. /**
  52. * The attributes that should be hidden for arrays.
  53. *
  54. * @var array
  55. */
  56. protected $hidden = [
  57. 'password', 'remember_token',
  58. ];
  59. /**
  60. * The attributes that should be cast to native types.
  61. *
  62. * @var array
  63. */
  64. protected $casts = [
  65. 'email_verified_at' => 'datetime',
  66. ];
  67. }