Esempio n. 1
0
 public function listing(Request $request, $name)
 {
     $users = User::search($name)->orderBy('id', 'asc')->lists('id', 'name', 'email', 'type');
     if ($request->ajax()) {
         return response()->json($users);
     }
 }