/** * Display a listing of the resource. * * @return Response */ public function index(Request $request) { $users = User::name($request->get('name'))->type($request->get('type'))->orderBy('id', 'DESC')->paginate(8); $selected = array(); return view('admin.users.index', compact('users', 'selected')); }
/** * Display a listing of the resource. * * @return Response */ public function index(Request $request) { $especialistas = User::name($request->get('name'))->filtro($request->get('filtro'))->type($request->get('type'))->orderBy('id', 'DESC')->paginate(8); return view('admin.especialista.index', compact('especialistas')); }
/** * Display a listing of the resource. * * @return Response */ public function index(\Illuminate\Http\Request $request) { $users = User::name($request->get('name'))->type($request->get('type'))->orderBy('id', 'DESC')->paginate(8); return view('admin.users.index', compact('users')); }