User.php 922 B

123456789101112131415161718192021222324252627282930313233343536
  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\HasAbilities;
  7. use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  8. use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  9. class User extends Model implements AuthenticatableContract, CanResetPasswordContract
  10. {
  11. use Authenticatable, CanResetPassword, HasAbilities;
  12. /**
  13. * The database table used by the model.
  14. *
  15. * @var string
  16. */
  17. protected $table = 'users';
  18. /**
  19. * The attributes that are mass assignable.
  20. *
  21. * @var array
  22. */
  23. protected $fillable = ['name', 'email', 'password'];
  24. /**
  25. * The attributes excluded from the model's JSON form.
  26. *
  27. * @var array
  28. */
  29. protected $hidden = ['password', 'remember_token'];
  30. }