Anyone?
Oct 1, 2019
3
Level 51
What is the best way to handle multiple uploads using `updateOrCreate`
Hi all,
I'm using the following to save/update a bunch of form fields Profile::updateOrCreate(['user_id' => $request->user_id], $request->except('_token', 'name', 'uuid')); which works great, but I have a few file fields I need to upload, resize and send to Amazon S3 at the same time.
Here's the form layout

One document for CV, one image for main image and one image for profile, then I have an image gallery that the user will be able to upload multiple images.
My questions is based on using the updateOrCreate method how would I get all these images and file to upload at the same time whilst resizing and uploading to S3?
Please or to participate in this conversation.