You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys I wanted to know if anyone could point me in the right direction to include a table from one model into another. So if I make a model that has a relationship to a customer and it has many I would like to phrase the table out with the ones that compare to that user. I was able to get that information into it by `
$equipment = DB::table('equipment')->where('customer', '=', $customer['id'])->get();
But this method seems to not work great. If the customer does not have a relation it will show blank rows in the table. The table also doesn't display the title of the rows of the table properly.
The text was updated successfully, but these errors were encountered:
Hey guys I wanted to know if anyone could point me in the right direction to include a table from one model into another. So if I make a model that has a relationship to a customer and it has many I would like to phrase the table out with the ones that compare to that user. I was able to get that information into it by `
$equipment = DB::table('equipment')->where('customer', '=', $customer['id'])->get();
`
But this method seems to not work great. If the customer does not have a relation it will show blank rows in the table. The table also doesn't display the title of the rows of the table properly.
The text was updated successfully, but these errors were encountered: