F
Filament10mo ago
lazydog

Table Builder

Please help me on displaying 2 tables. I have 3 tables, tbl1, tbl2 and tbl3. Tbl1 has fields: id and name Tbl2 has fields: id, tbl1_id, field_1 and field_2 Tbl3 has fields: id, tbl1_id, field_3, and field_4 Tbl1 hasMany Tbl2 Tbl1 hasMany Tbl3 How can I display all data of tbl2 and tbl3? Each db row should be listed in Table Builder Ex: data in tbl2 has 3 rows and tabl3 has 5 rows. So the Table builder should display 8 rows.
1 Reply
Tieme
Tieme10mo ago
Create relations on tbl_1 model and acces them with "dot notation", think that is the easiest way.
Want results from more Discord servers?
Add your server