Advertisement
ronikuchan

All raw code

Jul 25th, 2020
1,326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2. $ProdukMitra = DetailDistribusi::with('produk_mitra.produk', 'produk_mitra.detail')
  3.         ->whereHas('distribusi',
  4.         function($q) use ($request) {
  5.             $q->where('user_id', $request['mitra_id']);
  6.         })
  7.         ->where('distribusi_id', $id)->get();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement