I am really thinking pivot tables are too much hassle. Here is another question. I have types, in a table of Genre that exist. I wanted to list all genres in all stores. however, some of those stores are no longer around. They have been deleted, yet the product and the genre remain. I already know about cascade and all the ways this SHOULD have been built my question is
$firstGenres = Genre::all(); $genres = $firstGenre->where(Shop exists )
Shop is on the other side of a pivot table and it keeps telling me there is no shop. So... what do I need to do? get yourself that badge for answering!