Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down