techful / cloudinary-field
A Laravel Nova field.
Installs: 187
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: >=7.1.0
README
This package was originally forked form https://bitbucket.org/day4/nova-cloudinary but has diverged somewhat and is NOT backwards compatible.
Use to upload, browse and select resources from cloudinary.
Setup
.env
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
Usage
In Nova Resource:
use Techful\CloudinaryField\CloudinaryField;
···
public function fields(Request $request)
{
return [
···
CloudinaryField::make( __('Banner'), 'banner'),
CloudinaryField::make( __('Images'), 'images')
->setFolder('folderName', 'resource_type) // set a default folder and optionally filter by file type
]
}
The value should be stored in a json field.