/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // //$usr= User::All(); // $usr= User::OnlyTrashed->Paginate(2); - Muestra solos los elementos eliminados $usr = User::Paginate(2); return view('Usuario.index', ['users' => $usr]); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $users = User::Paginate(2); return view('usuario.index', compact('users')); }