This commit is contained in:
Pusdatin BPKD Jkt
2022-09-20 09:54:55 +07:00
parent 187f80eb2a
commit 577fbeef73
@@ -57,10 +57,10 @@ class ItemSearchController extends Controller
$tropd = Tropd::select($select); $tropd = Tropd::select($select);
if($request->has('q')){ if($request->has('q')){
$search = strtolower($request->q); $search = strtolower($request->q);
$tropd->whereRaw("LOWER(x.NAMA_SKPD) LIKE '%$search%'"); $tropd->whereRaw("LOWER(N_OPD) LIKE '%$search%'");
} }
$tropd->orderBy("C_OPD"); $tropd->orderBy("C_OPD");
$tropd->get(); $tropd = $tropd->get();
} }
return response()->json($tropd); return response()->json($tropd);
} }