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

        $oldTitle = $page->getTitle();
        $page->setTitle($request->input('title'));

        Event::fire(new Events\PageTitleWasChanged($page, $oldTitle, $page->getTitle()));

        return [
            'status'   => $page->getCurrentVersion()->getStatus(),
            'location' => (string) URLFacade::page($page),
        ];
    }
public function postTitle(Request $request, Page $page)
    {
        $this->authorize('edit', $page);

        $oldTitle = $page->getTitle();
        $page->setTitle($request->input('title'));

        Event::fire(new Events\PageTitleWasChanged($page, $oldTitle, $page->getTitle()));

        return [
            'status'   => $page->getCurrentVersion()->getStatus(),
            'location' => (string) URLFacade::page($page),
        ];
    }
public function postTitle ( Request $ request , Page $ page ) { $ this -> authorize ( 'edit' , $ page ) ; $ oldTitle = $ page -> getTitle ( ) ; $ page -> setTitle ( $ request -> input ( 'title' ) ) ; Event :: fire ( new Events \ PageTitleWasChanged ( $ page , $ oldTitle , $ page -> getTitle ( ) ) ) ; return [ 'status' => $ page -> getCurrentVersion ( ) -> getStatus ( ) , 'location' => ( string ) URLFacade :: page ( $ page ) , ] ; }
Set the title of the page.

@param Request $request
@param Page    $page

@return array
Set the title of the page .