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

Commit 8a71a0f

Browse files
add more components
1 parent 601f6d6 commit 8a71a0f

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@php
2+
echo cloudinary()->getImageTag("{$publicId}")->scale(500,500)->crop()->serialize();
3+
@endphp

β€Žresources/views/components/transformation.blade.phpβ€Ž

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@php
2+
echo cloudinary()->getVideoTag("{$publicId}")->setAttributes(['controls', 'loop', 'preload', 'style' => 'border: 1px;'])->fallback('Your browser does not support HTML5 video tagsssss.');
3+
@endphp

β€Žsrc/CloudinaryServiceProvider.phpβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ protected function bootDirectives()
128128
*/
129129
protected function bootComponents()
130130
{
131-
Blade::component('cloudinary::components.button', 'upload-button');
131+
Blade::component('cloudinary::components.button', 'cld-upload-button');
132+
Blade::component('cloudinary::components.image', 'cld-image');
133+
Blade::component('cloudinary::components.video', 'cld-video');
132134
}
133135

134136
/**

0 commit comments

Comments
Β (0)