/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit(General $general, Menu $menu) { $theme = $general->theme(); $menuLocations = MenuLocation::orderBy('id')->lists('name_en', 'id'); $menuStatuses = MenuStatus::orderBy('id')->lists('name_en', 'id'); $theme['title'] = 'Edit Menu'; $theme['description'] = 'edit menu entry'; $button_text = 'Update Menu'; return view('admin.menu.edit', compact('theme', 'menu', 'menuLocations', 'menuStatuses', 'button_text')); }
public function run() { DB::table('menu_statuses')->delete(); MenuStatus::create(['name_ka' => 'Active', 'name_en' => 'Active', 'name_ru' => 'Active']); MenuStatus::create(['name_ka' => 'Canceled', 'name_en' => 'Canceled', 'name_ru' => 'Canceled']); }