public function navigation() { parent::navigation(); if ($this->allowAdvanced) { $parent = Page::find($this->request->input('parent_id')); if ($parent) { $this->page->setParent($parent); } } $this->page->setVisibleInNav($this->request->input('visible_in_nav'))->setVisibleInCmsNav($this->request->input('visible_in_nav_cms')); Page::save($this->page); }
public function navigation() { parent::navigation(); return view("{$this->viewPrefix}/navigation", ['page' => $this->page, 'allowAdvanced' => $this->allowAdvanced]); }