/** * Displays all the users registered in the system. * * @return view */ public function index(Request $request) { // retrieves all users excluding the admin user $users = User::where('id', '!=', '1')->orderBy('id', 'DESC')->paginate(10); return view('auth.usuariosindex', compact('users')); }