DEV Community

loading...

Discussion on: Getting started with Amazon S3 storage in Laravel

Collapse
hosamalzagh profile image
hosamalzagh

you cant delete file as you save full url in db

ex to delete file you must code as

Storage::disk('s3')->delete('path/aaaaaaaa.webp');
not work as Storage::disk('s3')->delete('fullpath/aaaaaaaa.webp');

so when you save url in db must be short path