Пример #1
0
 protected function reassignURLs()
 {
     $redirectTo = PageFacade::find($this->options['redirectTo']);
     if ($redirectTo !== null) {
         foreach ($this->page->getUrls() as $url) {
             Bus::dispatch(new ReassignURL($url, $redirectTo));
         }
     }
 }
Пример #2
0
 public function urls()
 {
     return view($this->viewPrefix . 'urls', ['page' => $this->page, 'urls' => $this->page->getUrls()]);
 }