Render data from two resources

Is there a way to render data in a form from two different resources (tables or models) without a relationship between them? Thanks
5 Replies
tuto1902
tuto190211mo ago
I don't think there is. The sole purpose of a resource is to represent a single Model and provide CRUD operations for it. If this is a must have in your case, first thing that comes to mind would be to have a view in your database that combines the two tables. This way you can have a model that represents the view and a resource for said model. You can always customize the create/update action of the form so you can split the form data into two separate models.
RT2023
RT202311mo ago
Thanks a lot. this gives me a derection where to go from here
tuto1902
tuto190211mo ago
If you hit a wall again, let me know. I'm sure we can figure it out. 👍
RT2023
RT202311mo ago
will do 🙂
tuto1902
tuto190211mo ago
For now, I'll mark this as solved
Want results from more Discord servers?
Add your server
More Posts