Level 50
with this?
$test = Storage::delete('storage/'. $url_local );
I am trying to delete a file that I upload in a folder in the storage directory called avatars and I can delete it with unlink but storage disk does not work.
This works but
unlink(storage_path($url_local));
this does not
$test = Storage::delete(storage_path($url_local));
I looked at the source code and I do not see anything that would make it not work. I have used disk('local') and that does not work either.
Please or to participate in this conversation.