User.php 625 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Notifications\Notifiable;
  4. use Illuminate\Foundation\Auth\User as Authenticatable;
  5. use Spatie\Permission\Traits\HasRoles;
  6. class User extends Authenticatable
  7. {
  8. use Notifiable,HasRoles;
  9. protected $table = 'users';
  10. /**
  11. * The attributes that are mass assignable.
  12. *
  13. * @var array
  14. */
  15. protected $fillable = [
  16. 'username','name', 'email', 'password','phone','uuid'
  17. ];
  18. /**
  19. * The attributes that should be hidden for arrays.
  20. *
  21. * @var array
  22. */
  23. protected $hidden = [
  24. 'password', 'remember_token',
  25. ];
  26. }