I have three related tables like this: Table One related from one to many with Table2, Table2 related from one to many with TableTres.
How can I make a data query from Table Three with a condition to Table1. I'm really new at Laravel and I do not have much idea of what I have to do.
Try something like that, but ovio did not work.
return view('tabla3.index')
->with('TablaTres', $TablaTres -> where('id_tabla1', '4'));