protected function pageHook(Vpage $page)
    {
        if (! empty($this->adminPageCategory)) {
            $page->category()->associate($this->adminPageCategory);
            $page->save();
        }
    }
protected function pageHook(Vpage $page)
    {
        if (! empty($this->adminPageCategory)) {
            $page->category()->associate($this->adminPageCategory);
            $page->save();
        }
    }
protected function pageHook ( Vpage $ page ) { if ( ! empty ( $ this -> adminPageCategory ) ) { $ page -> category ( ) -> associate ( $ this -> adminPageCategory ) ; $ page -> save ( ) ; } }
Page creation hook.

Override this function in sub classes to do something with the page after it is created.

@param Vpage $page
@return void
Page creation hook .