/** * Show the form for editing the specified resource. * * @param int $id * * @return \Illuminate\Http\Response */ public function update(Request $request) { // $category_data = new CategoryData(); // $post_data = new PostData(); $page_id = $request->route('staticpage'); $static_page = new StaticPage(); $static_page_datas = new StaticPageData(); $languages = AppLanguage::orderBy('id')->get(); $info_page = $static_page->find($page_id); $template_block = new TemplateBlock(); $option_template = $template_block->selectBoxBlock($info_page->properties); return view('admin.staticpage.update', compact('languages', 'page_id', 'static_page_datas', 'option_template')); }