User.php 1019 B

12345678910111213141516171819202122232425262728293031323334353637
  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, AuthorizableContract, CanResetPasswordContract
  11. {
  12. use Authenticatable, Authorizable, CanResetPassword;
  13. /**
  14. * The database table used by the model.
  15. *
  16. * @var string
  17. */
  18. protected $table = 'users';
  19. /**
  20. * The attributes that are mass assignable.
  21. *
  22. * @var array
  23. */
  24. protected $fillable = ['name', 'email', 'password'];
  25. /**
  26. * The attributes excluded from the model's JSON form.
  27. *
  28. * @var array
  29. */
  30. protected $hidden = ['password', 'remember_token'];
  31. }