ExportAction on Row to export another model with HasMany relationship
Hi there,
I am trying too add an export action to the end of my row and has it export the related model. I have a resource that shows all my Posts and at the end of each row i want to have an option to export the comments from that post. The post has a HasMany relationship to the comments.
I have a resource for Comments but it shows all the comments for all the posts because from a moderation perspective makes less sense to have to click into everyone post through a relationship manager to approve comments. I was able to export all the Comments through that Resource without any issue. Just want to add it to the Post Resource to to grab only for each post.
Thanks!
0 Replies