Commit 04ec8c29 by Aan Choesni Herlingga

bug fix menu page

parent f1f16843
......@@ -231,7 +231,7 @@ class MenuController extends Controller
$page = Pages::with(['rEn'])->where('id', $request->input('page'))->first();
$data['name'] = $page->rEn->title;
$data['name'] = $page->title;
$data['level'] = $level;
$data['parentlevel'] = $parentlevel;
$data['urutan'] = $urutan + 1;
......@@ -243,6 +243,8 @@ class MenuController extends Controller
$save = Menu::create($data);
$data['name'] = $page->rEn->title;
$this->createEn($data, $save, 'notTranslate');
Alert::success('Data berhasil disimpan')->persistent('Ok');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment