コード例 #1
0
 /**
  * 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', [], 404);
     }
     return view('frontend.photo_gallery.show', compact('photo_gallery'));
 }
コード例 #2
0
 /**
  * @param null $perPage
  * @param bool $all
  * @return mixed
  */
 public function paginate($page = 1, $limit = 10, $all = false)
 {
     return $this->photoGallery->paginate($page, $limit, $all);
 }