AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. use Illuminate\Support\Str;
  3. return [
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Default Cache Store
  7. |--------------------------------------------------------------------------
  8. |
  9. | This option controls the default cache store that will be used by the
  10. | framework. This connection is utilized if another isn't explicitly
  11. | specified when running a cache operation inside the application.
  12. |
  13. */
  14. 'default' => env('CACHE_STORE', 'database'),
  15. /*
  16. |--------------------------------------------------------------------------
  17. | Cache Stores
  18. |--------------------------------------------------------------------------
  19. |
  20. | Here you may define all of the cache "stores" for your application as
  21. | well as their drivers. You may even define multiple stores for the
  22. | same cache driver to group types of items stored in your caches.
  23. |
  24. | Supported drivers: "array", "database", "file", "memcached",
  25. | "redis", "dynamodb", "storage", "octane",
  26. | "session", "failover", "null"
  27. |
  28. */
  29. 'stores' => [
  30. 'array' => [
  31. 'driver' => 'array',
  32. 'serialize' => false,
  33. ],
  34. 'database' => [
  35. 'driver' => 'database',
  36. 'connection' => env('DB_CACHE_CONNECTION'),
  37. 'table' => env('DB_CACHE_TABLE', 'cache'),
  38. 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
  39. 'lock_table' => env('DB_CACHE_LOCK_TABLE'),
  40. ],
  41. 'file' => [
  42. 'driver' => 'file',
  43. 'path' => storage_path('framework/cache/data'),
  44. 'lock_path' => storage_path('framework/cache/locks'),
  45. ],
  46. 'storage' => [
  47. 'driver' => 'storage',
  48. 'disk' => env('CACHE_STORAGE_DISK'),
  49. 'path' => env('CACHE_STORAGE_PATH', 'framework/cache/data'),
  50. ],
  51. 'memcached' => [
  52. 'driver' => 'memcached',
  53. 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
  54. 'sasl' => [
  55. env('MEMCACHED_USERNAME'),
  56. env('MEMCACHED_PASSWORD'),
  57. ],
  58. 'options' => [
  59. // Memcached::OPT_CONNECT_TIMEOUT => 2000,
  60. ],
  61. 'servers' => [
  62. [
  63. 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
  64. 'port' => env('MEMCACHED_PORT', 11211),
  65. 'weight' => 100,
  66. ],
  67. ],
  68. ],
  69. 'redis' => [
  70. 'driver' => 'redis',
  71. 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
  72. 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
  73. ],
  74. 'dynamodb' => [
  75. 'driver' => 'dynamodb',
  76. 'key' => env('AWS_ACCESS_KEY_ID'),
  77. 'secret' => env('AWS_SECRET_ACCESS_KEY'),
  78. 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
  79. 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
  80. 'endpoint' => env('DYNAMODB_ENDPOINT'),
  81. ],
  82. 'octane' => [
  83. 'driver' => 'octane',
  84. ],
  85. 'failover' => [
  86. 'driver' => 'failover',
  87. 'stores' => [
  88. 'database',
  89. 'array',
  90. ],
  91. ],
  92. ],
  93. /*
  94. |--------------------------------------------------------------------------
  95. | Cache Key Prefix
  96. |--------------------------------------------------------------------------
  97. |
  98. | When utilizing the APC, database, memcached, Redis, and DynamoDB cache
  99. | stores, there might be other applications using the same cache. For
  100. | that reason, you may prefix every cache key to avoid collisions.
  101. |
  102. */
  103. 'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-cache-'),
  104. /*
  105. |--------------------------------------------------------------------------
  106. | Serializable Classes
  107. |--------------------------------------------------------------------------
  108. |
  109. | This value determines the classes that can be unserialized from cache
  110. | storage. By default, no PHP classes will be unserialized from your
  111. | cache to prevent gadget chain attacks if your APP_KEY is leaked.
  112. |
  113. */
  114. 'serializable_classes' => false,
  115. ];