User.php 943 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. protected $table = 'site_users';
  12. /**
  13. * The attributes that are mass assignable.
  14. *
  15. * @var array<int, string>
  16. */
  17. protected $fillable = [
  18. 'username',
  19. 'password',
  20. ];
  21. /**
  22. * The attributes that should be hidden for serialization.
  23. *
  24. * @var array<int, string>
  25. */
  26. protected $hidden = [
  27. 'password',
  28. 'remember_token',
  29. ];
  30. /**
  31. * The attributes that should be cast.
  32. *
  33. * @var array<string, string>
  34. */
  35. protected $casts = [
  36. // 'email_verified_at' => 'datetime',
  37. ];
  38. }