PHP code example of bbs-lab / nova-cloudinary-field
1. Go to this page and download the library: Download bbs-lab/nova-cloudinary-field library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bbs-lab / nova-cloudinary-field example snippets
return [
/*
|--------------------------------------------------------------------------
| Cloud Name
|--------------------------------------------------------------------------
|
| This is the name of your Cloudinary cloud name
| It can commonly be found on the upper left part of the Cloudinary
| dashboard.
|
*/
'cloud_name' => env('CLOUDINARY_CLOUD_NAME',''),
/*
|--------------------------------------------------------------------------
| API Key
|--------------------------------------------------------------------------
|
| This is your public Cloudinary API key
| It can commonly be found on the upper left part of the Cloudinary
| dashboard.
|
*/
'api_key' => env('CLOUDINARY_API_KEY',''),
/*
|--------------------------------------------------------------------------
| API Secret
|--------------------------------------------------------------------------
|
| This is your secret Cloudinary key
| It can commonly be found on the upper left part of the Cloudinary
| dashboard (remember to click on "Reveal")
|
*/
'api_secret' => env('CLOUDINARY_API_SECRET',''),
/*
|--------------------------------------------------------------------------
| Cloudinary Username
|--------------------------------------------------------------------------
|
| This is the email address of the Cloudinary account you want to use.
|
*/
'username' => env('CLOUDINARY_USERNAME',''),
];
namespace App\Nova;
use BBSLab\CloudinaryField\Cloudinary;
class BlogPost extends Resource
{
// ...
public function fields(Request $request)
{
return [
// ...
Cloudinary::make('Image'),
// ...
];
}
}