day4/cloudinary
Composer 安装命令:
composer require day4/cloudinary
包简介
A Laravel Nova field.
README 文档
README
Use to upload, browse and select resources from cloudinary.
The value stored contains the following settings: f_auto,c_limit,w_600, which you can replace with what ever settings you need when using the image.
Multiple images are seperated with ; so can be stored in a normal text field.
Setup
.env
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
And then in your config/nova.php file add:
'cloudinary_api_key' => env('CLOUDINARY_API_KEY'),
'cloudinary_cloud_name' => env('CLOUDINARY_CLOUD_NAME')
Usage
In Nova Resource:
use Day4\Cloudinary\Cloudinary;
···
public function fields(Request $request)
{
return [
···
Cloudinary::make( __('Banner'), 'banner'),
Cloudinary::make( __('Images'), 'images')
->allowMultiple(true) // Select multiple
]
}
统计信息
- 总下载量: 1.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-04