lundi 17 octobre 2016

Converting mysql query to laravel query

How I can convert mysql query to laravel query? this is the query SELECT p.*, IF(p.id = wish.product_id,1,0) AS status FROM products as p LEFT JOINwishlistsas wish ON wish.product_id = p.id and product_id AND wish.user_id = 1



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire