Looking to hire Laravel developers? Try LaraJobs

laravel-static-image-cache maintained by mscharl

Description
store/cache external images as a static file
Last update
2017/08/31 15:22 (dev-master)
License
Links
Downloads
2 814

Comments
comments powered by Disqus

laravel-static-image-cache

store/cache external images as a static file

Setup

Add the service provider to the app.php provider array

[
    MScharl\LaravelStaticImageCache\Provider\LaravelStaticImageCacheProvider::class,
]

Usage

Just use the staticImage-helper to generate the static file url

<img src="{{ staticImage('https://images.domain.com/my-image.jpg') }}" alt="An external image">

Clear the files

To clear all the files manually you can use an artisan task.

php artisan static-image-cache:clear