imagecache.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Name of route
  6. |--------------------------------------------------------------------------
  7. |
  8. | Enter the routes name to enable dynamic imagecache manipulation.
  9. | This handle will define the first part of the URI:
  10. |
  11. | {route}/{template}/{filename}
  12. |
  13. | Examples: "images", "img/cache"
  14. |
  15. */
  16. 'route' => 'cache',
  17. /*
  18. |--------------------------------------------------------------------------
  19. | Storage paths
  20. |--------------------------------------------------------------------------
  21. |
  22. | The following paths will be searched for the image filename, submited
  23. | by URI.
  24. |
  25. | Define as many directories as you like.
  26. |
  27. */
  28. 'paths' => [
  29. storage_path('app/public'),
  30. public_path('storage'),
  31. ],
  32. /*
  33. |--------------------------------------------------------------------------
  34. | Manipulation templates
  35. |--------------------------------------------------------------------------
  36. |
  37. | Here you may specify your own manipulation filter templates.
  38. | The keys of this array will define which templates
  39. | are available in the URI:
  40. |
  41. | {route}/{template}/{filename}
  42. |
  43. | The values of this array will define which filter class
  44. | will be applied, by its fully qualified name.
  45. |
  46. */
  47. 'templates' => [
  48. 'small' => 'Webkul\Shop\CacheFilters\Small',
  49. 'medium' => 'Webkul\Shop\CacheFilters\Medium',
  50. 'large' => 'Webkul\Shop\CacheFilters\Large',
  51. ],
  52. /*
  53. |--------------------------------------------------------------------------
  54. | Image Cache Lifetime
  55. |--------------------------------------------------------------------------
  56. |
  57. | Lifetime in minutes of the images handled by the imagecache route.
  58. |
  59. */
  60. 'lifetime' => 525600,
  61. ];