User.php 622 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App;
  3. use Illuminate\Auth\MustVerifyEmail;
  4. use Illuminate\Notifications\Notifiable;
  5. use Illuminate\Foundation\Auth\User as Authenticatable;
  6. use Illuminate\Contracts\Auth\MustVerifyEmail as MustVerifyEmailContract;
  7. class User extends Authenticatable
  8. {
  9. use Notifiable;
  10. /**
  11. * The attributes that are mass assignable.
  12. *
  13. * @var array
  14. */
  15. protected $fillable = [
  16. 'name', 'email', 'password',
  17. ];
  18. /**
  19. * The attributes that should be hidden for arrays.
  20. *
  21. * @var array
  22. */
  23. protected $hidden = [
  24. 'password', 'remember_token',
  25. ];
  26. }