LaravelPackages.net
Acme Inc.
Toggle sidebar
skydiver/nova-cached-images

Laravel Nova field to display and cache remote images.

37
0
1.0.1
About skydiver/nova-cached-images

skydiver/nova-cached-images is a Laravel package for laravel nova field to display and cache remote images.. It currently has 0 GitHub stars and 37 downloads on Packagist (latest version 1.0.1). Install it with composer require skydiver/nova-cached-images. Discover more Laravel packages by skydiver or browse all Laravel packages to compare alternatives.

Last updated

nova-cached-images

Laravel Nova field to display (and cache) remote images

Installation

  1. run composer require skydiver/nova-cached-images

Usage

  1. open your resource
  2. add use Skydiver\NovaCachedImages\NovaCachedImages; in the top of your file
  3. insert NovaCachedImages::make("Avatar") in your fields method

Field options

NovaCachedImages::make("Avatar")
  ->class('image-class')                      // img tag class
  ->containerClass('image-container-class')   // imgage container class
  ->width('50px')                             // image width 
  ->height('50px')                            // image height
  ->radius('5px')                             // image border radius

Credits

  • biigle/laravel-file-cache: Fetch and cache files from local filesystem, cloud storage or public webservers in Laravel or Lumen.

License

The MIT License (MIT). Please see License File for more information.

Star History Chart