User.php 1.0 KB

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