2017 © Pedro Peláez
 

library cloudinary-upload

This package is built on top of intervention and php-cloudinary to ease image upload process

image

wiraazharan/cloudinary-upload

This package is built on top of intervention and php-cloudinary to ease image upload process

  • Tuesday, October 24, 2017
  • by wiraazharan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

CLOUDINARY-UPLOAD

Setup

RUN :, (*1)

$ composer install

Create File with titled "cloud_inary.php" and put inside config folder

File contains :, (*2)

<?php
return [
    'cloud_name' => 'xxx',
    'api_key' => 'xxx',
    'api_secret' => 'xxx',
    'base_secure_url' => 'https://res.cloudinary.com/',
];

Register Provider AND Facade

'providers' => [
        ...
        Intervention\Image\ImageServiceProvider::class,
        Wiraazharan\Cloudinaryupload\UploadServiceProvider::class,
    ],
'aliases' => [
        ...
        'Image' => Intervention\Image\Facades\Image::class,
        'CustomCloudinaryUpload' => Wiraazharan\Cloudinaryupload\UploadFacade::class,
    ],

Implementation for Laravel

In Controller :, (*3)

public function test_upload(Request $request){
        $uploaded_picture = $request->file('photo');
        $imageUrl = CustomCloudinaryUpload::upload($uploaded_picture,{photo_degree},'{folder_to_be_saved}','{image_name_prefix}');
        return $imageUrl;
    }

The Versions

24/10 2017

dev-master

9999999-dev

This package is built on top of intervention and php-cloudinary to ease image upload process

  Sources   Download

MIT

The Requires

 

by WIRA AZHARAN AKMAR