When trying to delete an image from a specific directory I get the message that the file does not exist, however, referring to the path that the code is running I see that the file exists yes, and the path string is 100% correct. / p>
I came to consider permission but the code itself is who creates the folder, saves the file inside and reads, only it does not delete ...
Storage::delete(public_path('uploads/'.$asset->contents->belongs_to.'/'.$asset->name));
File not found at path: var / www / xpto-digitaldev / public / uploads / 2 / 217dade2ab7db91d12f1bca7b0cd4c82.png
Saving the file from the upload;
if ($request->hasFile('image')) {
$extension = $image->getClientOriginalExtension();
$newFileName = md5(rand(0,9999)).'.'.$extension;
$image->move(public_path('uploads/'.$clientDirectory), $newFileName);
}