暫無描述

User.php 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App;
  3. use Illuminate\Auth\Authenticatable;
  4. use Illuminate\Database\Eloquent\Model;
  5. use Illuminate\Auth\Passwords\CanResetPassword;
  6. use Illuminate\Foundation\Auth\Access\Authorizable;
  7. use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  8. use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
  9. use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  10. class User extends Model implements AuthenticatableContract,
  11. AuthorizableContract,
  12. CanResetPasswordContract
  13. {
  14. use Authenticatable, Authorizable, CanResetPassword;
  15. /**
  16. * The database table used by the model.
  17. *
  18. * @var string
  19. */
  20. protected $table = 'users';
  21. /**
  22. * The attributes that are mass assignable.
  23. *
  24. * @var array
  25. */
  26. protected $fillable = ['name', 'email', 'password'];
  27. /**
  28. * The attributes excluded from the model's JSON form.
  29. *
  30. * @var array
  31. */
  32. protected $hidden = ['password', 'remember_token'];
  33. }