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

Commit 857b4fa

Browse files
extract cloud name
1 parent e6a9949 commit 857b4fa

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

config/cloudinary.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,5 @@
4040
* Upload Preset From Cloudinary Dashboard
4141
*
4242
*/
43-
'upload_preset' => env('CLOUDINARY_UPLOAD_PRESET'),
44-
45-
/**
46-
* Cloud name From Cloudinary Dashboard
47-
*
48-
*/
49-
'cloud_name' => env('CLOUD_NAME')
43+
'upload_preset' => env('CLOUDINARY_UPLOAD_PRESET')
5044
];

resources/views/components/button.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script type="text/javascript">
22
3-
var cloudName = @json(config('cloudinary.cloud_name'));
3+
var cloudName = @json(Str::after(config('cloudinary.cloud_url'),'@'));
44
var uploadPreset = @json(config('cloudinary.upload_preset'));
55
66
function openWidget() {

0 commit comments

Comments
 (0)