Bugs Fix
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user