samedi 11 février 2017

Laravel 5.1 - Unable to delete file

I have the following code:

Storage::delete(public_path($file->path));

But I get error:

File not found at path: C:\wamp\www\laravel\acme\public\img/logos/1486846424_acme.gif

When I check the directory I can see the file is there so why I'm I unable to delete it. I've tried the php unlink function too and I get same error.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire