Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ->leftJoin('likes', function($join) use ($viewer_id) {
- $join->on('likes.customer_id', '=', DB::raw($viewer_id));
- $join->on('likes.like_type', '=', DB::raw(Like::LIKE_TYPE_PRODUCT));
- $join->on('likes.like_id', '=', 'oc_product.product_id');
- })
Add Comment
Please, Sign In to add comment