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

        $post = $request->input();

        $page->setChildTemplateId($request->input('children_template_id'));

        if (Gate::allows('editChildrenAdvanced', $page)) {
            $page
                ->setChildrenUrlPrefix($request->input('children_url_prefix'))
                ->setChildrenVisibleInNav($request->has('children_visible_in_nav'))
                ->setChildrenVisibleInNavCms($request->has('children_visible_in_nav_cms'))
                ->setGrandchildTemplateId($request->input('grandchild_template_id'));
        }

        if (isset($post['children_ordering_policy']) && isset($post['children_ordering_direction'])) {
            $page->setChildOrderingPolicy($post['children_ordering_policy'], $post['children_ordering_direction']);
        }

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

        $post = $request->input();

        $page->setChildTemplateId($request->input('children_template_id'));

        if (Gate::allows('editChildrenAdvanced', $page)) {
            $page
                ->setChildrenUrlPrefix($request->input('children_url_prefix'))
                ->setChildrenVisibleInNav($request->has('children_visible_in_nav'))
                ->setChildrenVisibleInNavCms($request->has('children_visible_in_nav_cms'))
                ->setGrandchildTemplateId($request->input('grandchild_template_id'));
        }

        if (isset($post['children_ordering_policy']) && isset($post['children_ordering_direction'])) {
            $page->setChildOrderingPolicy($post['children_ordering_policy'], $post['children_ordering_direction']);
        }

        PageFacade::save($page);
    }
public function postChildren ( Request $ request , Page $ page ) { $ this -> authorize ( 'editChildrenBasic' , $ page ) ; $ post = $ request -> input ( ) ; $ page -> setChildTemplateId ( $ request -> input ( 'children_template_id' ) ) ; if ( Gate :: allows ( 'editChildrenAdvanced' , $ page ) ) { $ page -> setChildrenUrlPrefix ( $ request -> input ( 'children_url_prefix' ) ) -> setChildrenVisibleInNav ( $ request -> has ( 'children_visible_in_nav' ) ) -> setChildrenVisibleInNavCms ( $ request -> has ( 'children_visible_in_nav_cms' ) ) -> setGrandchildTemplateId ( $ request -> input ( 'grandchild_template_id' ) ) ; } if ( isset ( $ post [ 'children_ordering_policy' ] ) && isset ( $ post [ 'children_ordering_direction' ] ) ) { $ page -> setChildOrderingPolicy ( $ post [ 'children_ordering_policy' ] , $ post [ 'children_ordering_direction' ] ) ; } PageFacade :: save ( $ page ) ; }
Save the child page settings.

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