public function getSlideImages() { $sliders = \DB::table("posts")->where("type", "slideshow")->get(); return \View::make("backend.sliders.manageimages")->with("slideshows", $sliders)->with("slideimages", \Slideshow::all()); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $slideshows = $this->slideshow->all(); return View::make('slideshows.index', compact('slideshows')); }
public function index() { $r_slide = Slideshow::all(); $r_post = Post::paginate(3); return View::make('pages.home', compact('r_post', 'r_slide')); }