User.php 469 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Foundation\Auth\User as Authenticatable;
  4. class User extends Authenticatable
  5. {
  6. /**
  7. * The attributes that are mass assignable.
  8. *
  9. * @var array
  10. */
  11. protected $fillable = [
  12. 'name', 'email', 'password', 'user_pic',
  13. ];
  14. /**
  15. * The attributes that should be hidden for arrays.
  16. *
  17. * @var array
  18. */
  19. protected $hidden = [
  20. 'password', 'remember_token',
  21. ];
  22. }