You have two options that would probably work:
first when a new file is uploaded, just write it with the same name. That would just overwrite it.
or, you'd need to get the old file, call delete on it and then just do the do in the same way.
Overwrite the old file in the same location.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community