DEV Community

Discussion on: Laravel Image Upload

Collapse
 
victoravelar profile image
Victor Avelar

If your using the Storage facade it will generate a new name for each image, this is to avoid overrides on your server.

You need to store the filename once it has been stored, you will understand everything more clearly explained by the Laravel team themselves if you read the file upload section of the File Storage docs.