コード例 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $sliders = $this->slider->all();
     return View::make('sliders.index', compact('sliders'));
 }
コード例 #2
0
 /**
  * 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));
 }
コード例 #3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //
     $sliders = Slider::all();
     return view('admin/sliders')->withSlider($sliders)->withNum(1);
 }
コード例 #4
0
 /**
  * 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));
 }