mscharl/laravel-static-image-cache

This package is abandoned and no longer maintained. No replacement package was suggested.

store/cache external images as a static file

v1.2 2017-08-31 13:22 UTC

This package is not auto-updated.

Last update: 2020-01-16 23:27:26 UTC


README

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