User.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. }