User.php 937 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace App;
  3. use Illuminate\Notifications\Notifiable;
  4. use Pixelfed\Snowflake\HasSnowflakePrimary;
  5. use Illuminate\Contracts\Auth\MustVerifyEmail;
  6. use Illuminate\Foundation\Auth\User as Authenticatable;
  7. class User extends Authenticatable
  8. {
  9. use HasSnowflakePrimary, Notifiable;
  10. /**
  11. * Indicates if the IDs are auto-incrementing.
  12. *
  13. * @var bool
  14. */
  15. public $incrementing = false;
  16. /**
  17. * The attributes that are mass assignable.
  18. *
  19. * @var array
  20. */
  21. protected $fillable = [
  22. 'username', 'name', 'email', 'password',
  23. ];
  24. /**
  25. * The attributes that should be hidden for arrays.
  26. *
  27. * @var array
  28. */
  29. protected $hidden = [
  30. 'password', 'remember_token',
  31. ];
  32. /**
  33. * The attributes that should be cast to native types.
  34. *
  35. * @var array
  36. */
  37. protected $casts = [
  38. 'email_verified_at' => 'datetime',
  39. ];
  40. }