diff --git a/README.md b/README.md index a2212d5..e4e414c 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,27 @@ 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` array in this file. 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.