Advertisement
fadlyshafa

Untitled

Mar 29th, 2020
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  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.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement