コード例 #1
0
 /**
  * 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'));
 }
コード例 #2
0
 /**
  * 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'));
 }
コード例 #3
0
 /**
  * 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'));
 }