示例#1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(GalleryRepo $gallery_repo)
 {
     $gallery = $gallery_repo->getAllFront();
     \Session::put('path', 'gallery');
     $title = prepTitle('gallery', 'Kastner & Pallavicino');
     return view('gallery.index', compact('gallery', 'title'));
 }
示例#2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(CarouselRepo $carousel_repo)
 {
     $carousel = $carousel_repo->getAllFront();
     // return $carousel;
     \Session::put('path', '');
     $title = prepTitle('', 'Kastner & Pallavicino');
     return view('home.index', compact('carousel', 'title'));
 }
示例#3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(PressRepo $press_repo)
 {
     $press = $press_repo->getAllFront();
     // return $press;
     \Session::put('path', 'press');
     $title = prepTitle('press', 'Kastner & Pallavicino');
     return view('press.index', compact('press', 'title'));
 }
示例#4
0
 public function catch_all($param)
 {
     if (view()->exists('static.' . $param)) {
         \Session::put('path', $param);
         $title = prepTitle($param, 'Kastner & Pallavicino');
         return view('static.' . $param, compact('title'));
     }
     // return $param;
     abort(404);
 }
示例#5
0
 public function catch_all($param)
 {
     if (view()->exists('static.' . $param)) {
         \Session::put('path', $param);
         $title = prepTitle($param, 'Bottega Italia');
         return view('static.' . $param, compact('title'));
     }
     // return $param;
     abort(404);
 }