eloquent-viewable.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Eloquent Models
  6. |--------------------------------------------------------------------------
  7. */
  8. 'models' => [
  9. /*
  10. * Here you can configure the default `View` model.
  11. */
  12. 'view' => [
  13. 'table_name' => 'views',
  14. 'connection' => env('DB_CONNECTION', 'mysql'),
  15. ],
  16. ],
  17. /*
  18. |--------------------------------------------------------------------------
  19. | Cache Configuration
  20. |--------------------------------------------------------------------------
  21. */
  22. 'cache' => [
  23. /*
  24. * Everthing will be stored under the following key.
  25. */
  26. 'key' => 'cyrildewit.eloquent-viewable.cache',
  27. /*
  28. * Here you may define the cache store that should be used.
  29. */
  30. 'store' => env('CACHE_DRIVER', 'file'),
  31. ],
  32. /*
  33. |--------------------------------------------------------------------------
  34. | Cooldown Configuration
  35. |--------------------------------------------------------------------------
  36. */
  37. 'cooldown' => [
  38. /*
  39. * Everthing will be stored under the following key in the session.
  40. */
  41. 'key' => 'cyrildewit.eloquent-viewable.cooldowns',
  42. ],
  43. /*
  44. |--------------------------------------------------------------------------
  45. | Ignore Bots
  46. |--------------------------------------------------------------------------
  47. |
  48. | If you want to ignore bots, you can specify that here. The default
  49. | service that determines if a visitor is a crawler is a package
  50. | by JayBizzle called CrawlerDetect.
  51. |
  52. */
  53. 'ignore_bots' => true,
  54. /*
  55. |--------------------------------------------------------------------------
  56. | Do Not Track Header
  57. |--------------------------------------------------------------------------
  58. |
  59. | If you want to honor the DNT header, you can specify that here. We won't
  60. | record views from visitors with the Do Not Track header.
  61. |
  62. */
  63. 'honor_dnt' => false,
  64. /*
  65. |--------------------------------------------------------------------------
  66. | Cookies
  67. |--------------------------------------------------------------------------
  68. |
  69. | This package binds visitors to views using a cookie. If you want to
  70. | give this cookie a custom name, you can specify that here.
  71. |
  72. */
  73. 'visitor_cookie_key' => 'eloquent_viewable',
  74. /*
  75. |--------------------------------------------------------------------------
  76. | Ignore IP Addresses
  77. |--------------------------------------------------------------------------
  78. |
  79. | Ignore views of the following IP addresses.
  80. |
  81. */
  82. 'ignored_ip_addresses' => [
  83. // '127.0.0.1',
  84. ],
  85. ];