Ejemplo n.º 1
0
 /**
  * Display a listing of the User.
  *
  * @param Request $request
  * @return Response
  */
 public function index(Request $request)
 {
     $this->authorize('users.view');
     $this->userRepository->pushCriteria(new RequestCriteria($request));
     $users = $this->userRepository->paginate(50);
     return view('users.index')->with('users', $users);
 }
Ejemplo n.º 2
0
 /**
  * Display a listing of the User.
  *
  * @return Response
  */
 public function index()
 {
     $users = $this->userRepository->paginate(10);
     return view('users.index')->with('users', $users);
 }
Ejemplo n.º 3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $users = $this->user->paginate();
     $totalUsers = $this->user->count();
     return view('admin.users.index', compact('users', 'totalUsers'));
 }