mercredi 23 janvier 2019

Storage::exists tells me the file exists but I can't delete it with Storage::delete

I'm trying to delete a file inside a folder with:

Storage::delete(strtolower($fileGroup->name) . '/' . $file->filename);

But it returns false and when I check the file it's still there. When I see if the same file exists with:

Storage::exists(strtolower($fileGroup->name) . '/' . $file->filename));

It returns true.

Does anyone know what i'm doing wrong? I'm using local storage with all the default settings.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire