User.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace App;
  3. use App\Search\Traits\ResumeSearchable;
  4. use Illuminate\Notifications\Notifiable;
  5. use Illuminate\Foundation\Auth\User as Authenticatable;
  6. /**
  7. * App\User
  8. *
  9. * @property int $id
  10. * @property string $name
  11. * @property string $email
  12. * @property string $password
  13. * @property string|null $remember_token
  14. * @property \Illuminate\Support\Carbon|null $created_at
  15. * @property \Illuminate\Support\Carbon|null $updated_at
  16. * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\User newModelQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\User newQuery()
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\User query()
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\User whereCreatedAt($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\User whereEmail($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\User whereId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\User whereName($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\User wherePassword($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\User whereRememberToken($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\User whereUpdatedAt($value)
  27. * @mixin \Eloquent
  28. */
  29. class User extends Authenticatable
  30. {
  31. use Notifiable,ResumeSearchable;
  32. /**
  33. * The attributes that are mass assignable.
  34. *
  35. * @var array
  36. */
  37. protected $fillable = [
  38. 'name', 'email', 'password',
  39. ];
  40. /**
  41. * The attributes that should be hidden for arrays.
  42. *
  43. * @var array
  44. */
  45. protected $hidden = [
  46. 'password', 'remember_token',
  47. ];
  48. }