Download the PHP package bbs-lab/nova-cloudinary-field without Composer
On this page you can find all versions of the php package bbs-lab/nova-cloudinary-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bbs-lab/nova-cloudinary-field
More information about bbs-lab/nova-cloudinary-field
Files in bbs-lab/nova-cloudinary-field
Package nova-cloudinary-field
Short Description A Cloudinary Media Library field for Laravel Nova.
License MIT
Homepage https://github.com/BBS-Lab/nova-cloudinary-field
Informations about the package nova-cloudinary-field
Laravel Nova Cloudinary field
A Cloudinary Media Library field and tool for Laravel Nova.
Contents
- Installation
- Usage
- Advanced usage
- Multiple selection
- Limit the number of selected files
- On-demand configuration
- Dependent Fields
- Screenshots
- List view
- Detail view
- Form view
- Changelog
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
The package will automatically register itself.
You can publish the config-file with:
This is the contents of the published config file:
Usage
You can use the BBSLab\CloudinaryField\Cloudinary
field in your Nova resource:
[!IMPORTANT] By default the field stores an array of data, you must cast your attribute as an
array
.
Advanced usage
Multiple selection
When using the Cloudinary
field on your Nova resource, you can tell the tool to allow multiple selection for your attribute.
By default, the tool will only allow single selection.
Limit the number of selected files
You can limit the number of selected files by using the limit
method.
On-demand configuration
You can use the following methods to set some configuration on the field:
cloud(string $cloud)
: Set the cloud name.username(string $username)
: Set the username.key(string $key)
: Set the API key.secret(string $secret)
: Set the API secret.
Also, you can use the configureUsing
method to set the configuration on the field:
Dependent Fields
You may use the dependsOn
method to conditionally display the field based on the value of another field. See the example below:
[!TIP] More information about dependent fields can be found in the official documentation.
Tool
The package also provides a tool to directly access the Cloudinary Media Library.
You may register the tool in your NovaServiceProvider
:
Screenshots
Index
Detail
Form
Tool
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Mikaël Popowicz
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of nova-cloudinary-field with dependencies
cloudinary/cloudinary_php Version ^2.14
laravel/nova Version ^4.0
nova-kit/nova-packages-tool Version ^1.3.1
spatie/laravel-package-tools Version ^1.16