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
toeknee2mo ago
If you use spatie media instead, then you can pass customer perameters in i.e. the resource
Dhru
Dhru2mo ago
there are couple of different ways to do it, one approach is you go to the create page and override the aftersave method

Did you find this page helpful?