app/Http/Controllers/SliderController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $sliders = Slider::all();
        foreach ($sliders as $key => $slider) {
            $slider->expires_on = Carbon::parse($slider->expires_on)->isoFormat('Do MMM, YYYY');
        }
        return view('back.dashboard.sliders.index', compact('sliders'));
    }
public function index ( ) { $ sliders = Slider :: all ( ) ; foreach ( $ sliders as $ key => $ slider ) { $ slider -> expires_on = Carbon :: parse ( $ slider -> expires_on ) -> isoFormat ( 'Do MMM, YYYY' ) ; } return view ( 'back.dashboard.sliders.index' , compact ( 'sliders' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .