/** * Display a listing of the resource. * * @return Response */ public function index() { $sliders = $this->slider->all(); return View::make('sliders.index', compact('sliders')); }
/** * List all the slides * @return \Illuminate\View\View */ public function index() { $slider_pages = Slider::orderBy('position')->get(); $total_pages = Slider::all()->count(); return View::make('admin.home_slider.index', array('slider_pages' => $slider_pages, 'total' => $total_pages)); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $sliders = Slider::all(); return view('admin/sliders')->withSlider($sliders)->withNum(1); }
/** * Display a listing of the resource. * GET /sliders * * @return Response */ public function index() { $sliders = Slider::all()->orderBy('created_at', 'DESC')->get(); return View::make('home.index')->with(array('sliders' => $sliders)); }