skip to Main Content

i'm tired to error message "Undefined variable $sliders" in carousel.blade.php

carousel.blade.php <div class="container"> <div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel"> <div class="carousel-inner"> @foreach($sliders as $key => $slider) <div class="carousel-item {{$key == 0 ? 'active' : ''}}"> <img class="d-block w-100" src="{{ asset('img/promotion/' . $slider->img) }}" alt="promotion"> </div> @endforeach </div> <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators"…

VIEW QUESTION

Laravel – compact(): Undefined variable $pesanan_details

My error compact(): Undefined variable $pesanan_details Line 138 experienced an error and a red notification on that line return view('checkout.check_out', compact('pesanan','pesanan_details')); Controller controller/PesananController <?php namespace AppHttpControllers; use AppModelsPesanan; use AppModelsPost; use AppModelsPesananDetail; use IlluminateHttpRequest; use IlluminateSupportFacadesAuth; use AppHttpControllersController; use AppHttpRequestsStorePesananRequest;…

VIEW QUESTION
Back To Top
Search