https://github.com/skydiver/nova-cached-images
Laravel Nova field to display (and cache) remote images
https://github.com/skydiver/nova-cached-images
Last synced: 3 months ago
JSON representation
Laravel Nova field to display (and cache) remote images
- Host: GitHub
- URL: https://github.com/skydiver/nova-cached-images
- Owner: skydiver
- License: mit
- Created: 2019-10-31T02:54:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-14T04:17:00.000Z (over 6 years ago)
- Last Synced: 2025-12-14T09:45:23.984Z (6 months ago)
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/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](LICENSE.md) for more information.