Closed Gianluigi081 closed 1 year ago
solution:
`<?php
$string = "https://res.cloudinary.com/djoqnuant/image/upload/v1648822921/Profiles/qttjxqfcfhrwttzyuivo.jpg";
$token = explode('/', $string);
var_dump($token);
$token2 = explode('.', $token[sizeof($token)-1]);
var_dump($token2[0]);
?>`
In Laravel, to delete we use the Cloudinary::destroy('NameFolder/$token[0])
method. The name of the folder will go as long as it is not in the root.
if($request->hasFile('image')){
I have also tried like this:
And so this method works but then it doesn't show me the images in Laravel, but if I delete and update the image in Cloudinary: