SAVE IMAGES ROUTES IN A DIFERENT TABLE

Hi there, i hope you'll are good. I have the follow question: I have a form to storage imagen to s3 and that works pretty good: However the problem is i need to update the routes of those images in other for id and route column. It works nice when i want to save the route in the table of the resource. but if is another table and i would need the id of the resource i am saving the images? how can i do that? Basically. save the routes of the images in another diferente table of the resource i am using to storage images to s3.
No description
2 Replies
toeknee
toeknee4w ago
If you use spatie media instead, then you can pass customer perameters in i.e. the resource
Dhru
Dhru4w ago
there are couple of different ways to do it, one approach is you go to the create page and override the aftersave method
Want results from more Discord servers?
Add your server