User.php 856 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App;
  3. use Illuminate\Auth\Authenticatable;
  4. use Illuminate\Database\Eloquent\Model;
  5. use Illuminate\Auth\Passwords\CanResetPassword;
  6. use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  7. use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  8. class User extends Model implements AuthenticatableContract, CanResetPasswordContract
  9. {
  10. use Authenticatable, CanResetPassword;
  11. /**
  12. * The database table used by the model.
  13. *
  14. * @var string
  15. */
  16. protected $table = 'users';
  17. /**
  18. * The attributes that are mass assignable.
  19. *
  20. * @var array
  21. */
  22. protected $fillable = ['name', 'email', 'password'];
  23. /**
  24. * The attributes excluded from the model's JSON form.
  25. *
  26. * @var array
  27. */
  28. protected $hidden = ['password', 'remember_token'];
  29. }