Esempio n. 1
0
 public function search()
 {
     parent::search();
     $this->page->setDescription($this->request->input('description'))->setKeywords($this->request->input('keywords'));
     if ($this->allowAdvanced) {
         $this->page->setExternalIndexing($this->request->input('external_indexing'))->setInternalIndexing($this->request->input('internal_indexing'));
     }
     Page::save($this->page);
     Event::fire(new PageSearchSettingsWereUpdated($this->page));
 }
Esempio n. 2
0
 public function search()
 {
     parent::search($this->page);
     return view("{$this->viewPrefix}/search", ['allowAdvanced' => $this->allowAdvanced, 'page' => $this->page]);
 }