/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $habitaciones = habitacion::paginate(5); return view('habitacion.index', compact('habitaciones')); }