chaseconey/nova-external-image
最新稳定版本:1.0.0
Composer 安装命令:
composer require chaseconey/nova-external-image
包简介
A Laravel Nova field.
README 文档
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/'),
Width
Set the width of the image (in pixels).
ExternalImage::make('Image') ->width(32),
Height
Set the height of the image (in pixels).
ExternalImage::make('Image') ->height(32),
Radius
Set the border radius of the image (in pixels).
ExternalImage::make('Image') ->radius(32),
Avatar
Set the image with avatar-like style (rounded and fixed height + width).
ExternalImage::make('Image') ->avatar(),
Search Avatar
If you want the external image to act as an Avatar in the search box use ExternalImageAsAvatar instead of ExternalImage
统计信息
- 总下载量: 434.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 28
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-28

