src/BoomCMS/Http/Controllers/Page/Settings.php
public function postNavigation(Request $request, Page $page)
    {
        $this->authorize('editNavBasic', $page);

        if (Gate::allows('editNavAdvanced', $page)) {
            $parent = Page::find($request->input('parent_id'));

            if ($parent) {
                $page->setParent($parent);
            }
        }

        $page
            ->setVisibleInNav($request->has('visible_in_nav'))
            ->setVisibleInCmsNav($request->has('visible_in_nav_cms'));

        PageFacade::save($page);
    }
public function postNavigation(Request $request, Page $page)
    {
        $this->authorize('editNavBasic', $page);

        if (Gate::allows('editNavAdvanced', $page)) {
            $parent = Page::find($request->input('parent_id'));

            if ($parent) {
                $page->setParent($parent);
            }
        }

        $page
            ->setVisibleInNav($request->has('visible_in_nav'))
            ->setVisibleInCmsNav($request->has('visible_in_nav_cms'));

        PageFacade::save($page);
    }
public function postNavigation ( Request $ request , Page $ page ) { $ this -> authorize ( 'editNavBasic' , $ page ) ; if ( Gate :: allows ( 'editNavAdvanced' , $ page ) ) { $ parent = Page :: find ( $ request -> input ( 'parent_id' ) ) ; if ( $ parent ) { $ page -> setParent ( $ parent ) ; } } $ page -> setVisibleInNav ( $ request -> has ( 'visible_in_nav' ) ) -> setVisibleInCmsNav ( $ request -> has ( 'visible_in_nav_cms' ) ) ; PageFacade :: save ( $ page ) ; }
Save the page navigation settings.

@param Request $request
@param Page    $page
Save the page navigation settings .