fadlyshafa

Untitled

Mar 29th, 2020
219
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function get_santri_ajax(Request $request){
  2.        
  3.         if ($request->has('q')) {
  4.             $cari = $request->q;
  5.             $data = M_santri::select('id', 'nama')->where('nama', 'LIKE', '%'.$cari.'%')->get();
  6.             return response()->json($data);
  7.         }
  8.     }
RAW Paste Data