claytonnarcis / nova-external-image-with-width
A Laravel Nova field that applies image with with
0.0.3
2018-10-10 02:16 UTC
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2021-08-12 08:45:29 UTC
README
An external image field for Laravel Nova
Installation
Install the package into a Laravel app that uses Nova with Composer:
composer require chaseconey/nova-external-image
Usage
Add the field to your resource in the fields
method:
use Chaseconey\ExternalImage\ExternalImage; ExternalImage::make('Image')
The field extends the Laravel\Nova\Fields\Text
field, so all the usual methods are available.
Options
Prefix
Prepend the image field with a prefix path. This is useful if you don't store the absolute path of images, but instead point to a cdn.
ExternalImage::make('Image') ->prefix('https://example.com/'),