/** * Display photo gallery * @param $slug * @return \Illuminate\View\View */ public function show($slug) { $photo_gallery = $this->photoGallery->getBySlug($slug); if ($photo_gallery === null) { return Response::view('errors.missing', array(), 404); } return view('frontend.photo_gallery.show', compact('photo_gallery')); }
/** * @param null $perPage * @param bool $all * @return mixed */ public function paginate($page = 1, $limit = 10, $all = false) { return $this->photoGallery->paginate($page, $limit, $all); }