@@ 38-45 (lines=8) @@ | ||
35 | return view('menu::admin.menuitems.create', compact('menu', 'pages')); |
|
36 | } |
|
37 | ||
38 | public function store(Menu $menu, CreateMenuItemRequest $request) |
|
39 | { |
|
40 | $this->menuItem->create($this->addMenuId($menu, $request)); |
|
41 | ||
42 | flash(trans('menu::messages.menuitem created')); |
|
43 | ||
44 | return redirect()->route('admin.menu.menu.edit', [$menu->id]); |
|
45 | } |
|
46 | ||
47 | public function edit(Menu $menu, Menuitem $menuItem) |
|
48 | { |
|
@@ 54-61 (lines=8) @@ | ||
51 | return view('menu::admin.menuitems.edit', compact('menu', 'menuItem', 'pages')); |
|
52 | } |
|
53 | ||
54 | public function update(Menu $menu, Menuitem $menuItem, UpdateMenuItemRequest $request) |
|
55 | { |
|
56 | $this->menuItem->update($menuItem, $this->addMenuId($menu, $request)); |
|
57 | ||
58 | flash(trans('menu::messages.menuitem updated')); |
|
59 | ||
60 | return redirect()->route('admin.menu.menu.edit', [$menu->id]); |
|
61 | } |
|
62 | ||
63 | public function destroy(Menu $menu, Menuitem $menuItem) |
|
64 | { |