You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
832 B

4 years ago
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Contracts\Auth\MustVerifyEmail;
  4. use Illuminate\Database\Eloquent\Factories\HasFactory;
  5. use Illuminate\Foundation\Auth\User as Authenticatable;
  6. use Illuminate\Notifications\Notifiable;
  7. class User extends Authenticatable
  8. {
  9. use HasFactory, Notifiable;
  10. /**
  11. * The attributes that are mass assignable.
  12. *
  13. * @var array
  14. */
  15. protected $fillable = [
  16. 'name',
  17. 'email',
  18. 'password',
  19. ];
  20. /**
  21. * The attributes that should be hidden for arrays.
  22. *
  23. * @var array
  24. */
  25. protected $hidden = [
  26. 'password',
  27. 'remember_token',
  28. ];
  29. /**
  30. * The attributes that should be cast to native types.
  31. *
  32. * @var array
  33. */
  34. protected $casts = [
  35. 'email_verified_at' => 'datetime',
  36. ];
  37. }