BeginnerSoul's avatar

Upload multiple images

Hello I am using voyager as admin panel and I am using one column to save the image files path/name in array. I want that the users also will be able to send multiple images when they are sending a blog post. Saving the files in the storage/public/blog folder with random names. I think laravel generate random names automatically and then saving that to the file system. On user side I am using vue.js and axios to send the data to the api but the controller part I don't know how should I do so voyager and the user side will seeing the same. So my biggest curious is that how I can retrieve the name when the laravel generated a new name for the files and put in array so I will be able to save in the database the path. Yeah I could define a name manually with dates and special ID but I would like to have random name which laravel generates so the files will be not overwritten if the file name exists.

0 likes
0 replies

Please or to participate in this conversation.