I have 3 tables
Products
id, name, image
Offers
id,name
Offer_product
id,offer_id,product_id
I am accessing data of product table with pagination using
$list = Product::query()->paginate(6);
now i want the complete record of products with offer name stored in offers table . id
of both product and offers are stored in offer_product table where one products can have many offers
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2YsPSDu
via IFTTT
Aucun commentaire:
Enregistrer un commentaire