Open Tressos-Aristomenis opened 3 years ago
@Tressos-Aristomenis is this something you still need?
It will be good if we can add attribute our own and it will merge into image tags Example
<x-cld-image public-id="{{$oldFeaturedImage->public_id}}" width="333" height="333" class="rounded-lg"></x-cld-image>
Hey, I have been struggling for hours and I still haven't found any solution with this one.
I can't find a way to add more attributes in
x-cld-image
. This is the component:Apparently, I can only add
width
andheight
but what if I want the image to be rounded? or change the file format?Last but not least, I did
$file->storeOnCloudinaryAs('logos', 'user_logo')
to upload the fileuser_logo
in the cloudinary folderlogos
and then I did$user->attachMedia($file)
to attach the image to the specified user model. However, this resulted in havinguser_logo
both in root cloudinary directory and inlogos
folder.Maybe add another parameter to
attachMedia
, ie.folder
so that we can choose destination folder for upload ?