mardi 26 décembre 2017

Laravel query many to Many

I need help.I have 2 tables products and catigories: enter image description here

enter image description here

Get request sends category id.My question is:how to build a query using the product model???(The query looks like this: Output the product where the category id is equal to $ request-> category).Table connections are configured, i need only query.(I read the documentation, but not understend)



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2pCMTuK
via IFTTT

Aucun commentaire:

Enregistrer un commentaire