Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function ethnicity(Request $request)
- {
- $ethnicity = [];
- if($request->has('q')){
- $search = $request->q;
- $ethnicity = DB::table("modified_dpprs")
- ->select("id","Bangsa_updated")
- ->where('Bangsa_updated','LIKE',"%$search%")
- ->get();
- }
- return response()->json($ethnicity);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement