User.php 912 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. use Laravel\Sanctum\HasApiTokens;
  8. class User extends Authenticatable
  9. {
  10. use HasApiTokens, HasFactory, Notifiable;
  11. /**
  12. * The attributes that are mass assignable.
  13. *
  14. * @var array<int, string>
  15. */
  16. protected $fillable = [
  17. 'user_id',
  18. 'name',
  19. 'department_id',
  20. 'email',
  21. 'account',
  22. 'role',
  23. ];
  24. /**
  25. * The attributes that should be hidden for serialization.
  26. *
  27. * @var array<int, string>
  28. */
  29. protected $hidden = [
  30. 'password',
  31. ];
  32. /**
  33. * The attributes that should be cast.
  34. *
  35. * @var array<string, string>
  36. */
  37. protected $casts = [
  38. ];
  39. }