コード例 #1
0
 /**
  * Display  admin panel video gallery page
  *
  * @return Response
  */
 public function showVideoGallery()
 {
     $galleryContent = GalleryContent::where('contentType', '=', 'video')->get();
     return view('pages.admin.adminVideoGallery', array('videoList' => $galleryContent));
 }
コード例 #2
0
 /**
  * show gallery navigation  controller.
  *
  *
  * @return Response
  */
 public function showGallery()
 {
     $galleryContentImages = GalleryContent::where('contentType', '=', 'image')->get();
     $galleryContentVideos = GalleryContent::where('contentType', '=', 'video')->get();
     return view('pages.client.clientGallery', array('imageList' => $galleryContentImages, 'videoList' => $galleryContentVideos));
 }