/** * This function response the home page view and also it clears the session details of * reservations if there are any. * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function HomePage() { $this->clearSession(); $images = HOME_GALLERY::all(); $facilities = FACILITY::all(); return view('Website.Demo')->with('images', $images)->with('facilities', $facilities); }
/** * delete home gallery image * * @param Request $request * */ public function admin_homeImage_del(Request $request) { $imgGal = HOME_GALLERY::find(Input::get("id")); $path = $imgGal->path; File::delete($path); $imgGal->delete(); }