User.php 823 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace App\Models\Auth;
  3. use App\Models\Base\AuthBaseModel;
  4. use Illuminate\Notifications\Notifiable;
  5. use Illuminate\Contracts\Auth\MustVerifyEmail;
  6. use Illuminate\Foundation\Auth\User as Authenticatable;
  7. class User extends AuthBaseModel
  8. {
  9. use Notifiable;
  10. protected $table = 'blog_users';
  11. /**
  12. * The attributes that are mass assignable.
  13. *
  14. * @var array
  15. */
  16. protected $fillable = [
  17. 'name', 'email', 'password',
  18. ];
  19. /**
  20. * The attributes that should be hidden for arrays.
  21. *
  22. * @var array
  23. */
  24. protected $hidden = [
  25. 'password', 'remember_token',
  26. ];
  27. /**
  28. * The attributes that should be cast to native types.
  29. *
  30. * @var array
  31. */
  32. // protected $casts = [
  33. // 'email_verified_at' => 'datetime',
  34. // ];
  35. }