Giter Club home page Giter Club logo

nova-cloudinary-field's Introduction

Laravel Nova Cloudinary field

Latest Version on Packagist Software License Build Status StyleCI Quality Score Code Coverage Total Downloads

A Cloudinary Media Library field for Laravel Nova.

Contents

Installation

You can install the package via composer:

composer require bbs-lab/nova-cloudinary-field

The package will automatically register itself.

You can publish the config-file with:

php artisan vendor:publish --provider="BBSLab\CloudinaryField\CloudinaryFieldServiceProvider" --tag="config"

This is the contents of the published config file:

<?php

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',''),
];

Usage

You can use the BBSLab\CloudinaryField\Cloudinary field in your Nova resource:

<?php

namespace App\Nova;

use BBSLab\CloudinaryField\Cloudinary;

class BlogPost extends Resource
{
    // ...
    
    public function fields(Request $request)
    {
        return [
            // ...

            Cloudinary::make('Image'),

            // ...
        ];
    }
    
}

Screenshots

List view

List view

Detail view

Detail view

Form view

Form view - Nothing selected Form view - Nothing selected

Form view - Picture selected Form view - Picture selected

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

License

The MIT License (MIT). Please see License File for more information.

nova-cloudinary-field's People

Contributors

bbs-smuller avatar mikaelpopowicz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.