User.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. /**
  8. * App\Models\User
  9. *
  10. * @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
  11. * @property-read int|null $notifications_count
  12. * @method static \Database\Factories\UserFactory factory(...$parameters)
  13. * @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
  14. * @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
  15. * @method static \Illuminate\Database\Eloquent\Builder|User query()
  16. * @mixin \Eloquent
  17. */
  18. class User extends Authenticatable
  19. {
  20. use HasFactory, Notifiable;
  21. /**
  22. * The attributes that are mass assignable.
  23. *
  24. * @var array
  25. */
  26. protected $fillable = [
  27. 'name',
  28. 'email',
  29. 'password',
  30. ];
  31. /**
  32. * The attributes that should be hidden for arrays.
  33. *
  34. * @var array
  35. */
  36. protected $hidden = [
  37. 'password',
  38. 'remember_token',
  39. ];
  40. /**
  41. * The attributes that should be cast to native types.
  42. *
  43. * @var array
  44. */
  45. protected $casts = [
  46. 'email_verified_at' => 'datetime',
  47. ];
  48. }