Guest User

Untitled

a guest
Mar 17th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. ->leftJoin('likes', function($join) use ($viewer_id) {
  2. $join->on('likes.customer_id', '=', DB::raw($viewer_id));
  3. $join->on('likes.like_type', '=', DB::raw(Like::LIKE_TYPE_PRODUCT));
  4. $join->on('likes.like_id', '=', 'oc_product.product_id');
  5. })
Add Comment
Please, Sign In to add comment