Skip to content
This repository was archived by the owner on Jul 15, 2020. It is now read-only.

Commit 6302373

Browse files
wip
1 parent a509407 commit 6302373

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,26 @@ $result = $request->file->storeOnCloudinary('lambogini');
7070

7171
// Store the uploaded file in the "lambogini" directory on Cloudinary with the filename "prosper"
7272
$result = $request->file->storeOnCloudinaryAs('lambogini', 'prosper');
73+
74+
$result->getPath(); // Get the url of the uploaded file; http
75+
$result->getSecurePath(); // Get the url of the uploaded file; https
76+
$result->getSize(); // Get the size of the uploaded file in bytes
77+
$result->getReadableSize(); // Get the size of the uploaded file in bytes, megabytes, gigabytes or terabytes. E.g 1.8 MB
78+
$result->getFileType(); // Get the type of the uploaded file
79+
$result->getFileName(); // Get the file name of the uploaded file
80+
$result->getOriginalFileName(); // Get the file name of the file before it was uploaded to Cloudinary
81+
$result->getPublicId(); // Get the public_id of the uploaded file
82+
$result->getExtension(); // Get the extension of the uploaded file
83+
$result->getWidth(); // Get the width of the uploaded file
84+
$result->getHeight(); // Get the height of the uploaded file
85+
$result->getTimeUploaded(); // Get the time the file was uploaded
7386
```
7487

7588
## Installation
7689

77-
[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.
90+
[PHP](https://php.net) 7.1+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.
7891

79-
To get the latest version of Laravel Cloudinary, simply require it
92+
To get the latest version of Laravel Cloudinary, simply require it:
8093

8194
```bash
8295
composer require unicodeveloper/laravel-cloudinary
@@ -101,11 +114,9 @@ Once Laravel Cloudinary is installed, you need to register the service provider.
101114
]
102115
```
103116

104-
> If you use **Laravel >= 5.5** you can skip this step and go to [**`configuration`**](https://github.com/unicodeveloper/laravel-cloudinary#configuration)
105-
106-
* `Unicodeveloper\Cloudinary\CloudinaryServiceProvider::class`
117+
> Note: If you use **Laravel >= 5.5** you can skip this step (adding the code above to the providers key) and go to [**`configuration`**](https://github.com/unicodeveloper/laravel-cloudinary#configuration)
107118
108-
Also, register the Facade like so:
119+
Also, register the Cloudinary Facade like so:
109120

110121
```php
111122
'aliases' => [

0 commit comments

Comments
 (0)