From 931f4b23ce8d00828312e10bf9f98ef5cfac47ba Mon Sep 17 00:00:00 2001 From: koshkoshka Date: Mon, 24 Jun 2019 12:21:58 +0300 Subject: [PATCH 1/4] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index a2212d5..8c35181 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,24 @@ Add the facade of this package to the `$aliases` array. 'Image' => 'Intervention\Image\Facades\Image' ), +Publish Configuration + +`php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"` + +In file config/imagecache.php + +`'route' => 'cache'` +Then Edit your paths. Add line +`storage_path('app/public'),` + +##Nginx Config +` +location ~* ^/cache.+\.(jpg|jpeg|gif|png|bmp|JPG)$ { + try_files $uri $uri/ /index.php?$query_string; + log_not_found off; +} +` + ## Usage The Image Cache is best called by the static method `Image::cache` from the Intervention Image class. From ef0f231890a90470c42667a06d39f5c9af32a97c Mon Sep 17 00:00:00 2001 From: koshkoshka Date: Mon, 24 Jun 2019 12:23:21 +0300 Subject: [PATCH 2/4] Update README.md --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8c35181..f431784 100644 --- a/README.md +++ b/README.md @@ -42,21 +42,24 @@ Add the facade of this package to the `$aliases` array. Publish Configuration -`php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"` + $php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5" In file config/imagecache.php -`'route' => 'cache'` + `'route' => 'cache'` + Then Edit your paths. Add line -`storage_path('app/public'),` + + `storage_path('app/public'),` ##Nginx Config -` + +``` location ~* ^/cache.+\.(jpg|jpeg|gif|png|bmp|JPG)$ { try_files $uri $uri/ /index.php?$query_string; log_not_found off; } -` +``` ## Usage From c8584ba9b2463cbb35efee05ff879401f8063775 Mon Sep 17 00:00:00 2001 From: koshkoshka Date: Mon, 24 Jun 2019 12:24:01 +0300 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f431784..77c7c8e 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,11 @@ Publish Configuration In file config/imagecache.php - `'route' => 'cache'` + 'route' => 'cache' Then Edit your paths. Add line - `storage_path('app/public'),` + storage_path('app/public'), ##Nginx Config From d438bfbe5c591c81746f09faf39ca21d4c9e152f Mon Sep 17 00:00:00 2001 From: koshkoshka Date: Mon, 24 Jun 2019 12:24:58 +0300 Subject: [PATCH 4/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77c7c8e..e4e414c 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,11 @@ Publish Configuration $php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5" -In file config/imagecache.php +In file `config/imagecache.php` 'route' => 'cache' -Then Edit your paths. Add line +Then Edit your `$paths` array in this file. Add line storage_path('app/public'),