src/BoomCMS/Http/Controllers/Page/Version.php
public function postTemplate(Page $page, Template $template)
    {
        $this->authorize('editTemplate', $page);

        $page->setTemplate($template);

        Event::fire(new Events\PageTemplateWasChanged($page, $template));

        return $page->getCurrentVersion()->getStatus();
    }
public function postTemplate(Page $page, Template $template)
    {
        $this->authorize('editTemplate', $page);

        $page->setTemplate($template);

        Event::fire(new Events\PageTemplateWasChanged($page, $template));

        return $page->getCurrentVersion()->getStatus();
    }
public function postTemplate ( Page $ page , Template $ template ) { $ this -> authorize ( 'editTemplate' , $ page ) ; $ page -> setTemplate ( $ template ) ; Event :: fire ( new Events \ PageTemplateWasChanged ( $ page , $ template ) ) ; return $ page -> getCurrentVersion ( ) -> getStatus ( ) ; }
Set the template of the page.

@param Page     $page
@param Template $template

@return string
Set the template of the page .