visitor.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | This value determines which of the following driver to use.
  9. | You can switch to a different driver at runtime.
  10. |
  11. */
  12. 'default' => 'jenssegers',
  13. //except save request or route names
  14. 'except' => ['login', 'register'],
  15. //name of the table which visit records should save in
  16. 'table_name' => 'visits',
  17. /*
  18. |--------------------------------------------------------------------------
  19. | List of Drivers
  20. |--------------------------------------------------------------------------
  21. |
  22. | This is the array of Classes that maps to Drivers above.
  23. | You can create your own driver if you like and add the
  24. | config in the drivers array and the class to use for
  25. | here with the same name. You will have to implement
  26. | Shetabit\Visitor\Contracts\UserAgentParser in your driver.
  27. |
  28. */
  29. 'drivers' => [
  30. 'jenssegers' => \Shetabit\Visitor\Drivers\JenssegersAgent::class,
  31. 'UAParser' => \Shetabit\Visitor\Drivers\UAParser::class,
  32. ]
  33. ];