claytonnarcis / nova-external-image-with-width
A Laravel Nova field that applies image with with
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 604
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 8
Language:Vue
pkg:composer/claytonnarcis/nova-external-image-with-width
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/'),

