/** * 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')); }
/** * 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')); }
/** * 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')); }
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); }
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); }