Пример #1
0
 public function admin()
 {
     parent::admin();
     $this->page->setInternalName($this->request->input('internal_name'));
     if (Auth::loggedIn('edit_disable_delete', $this->page)) {
         $this->page->setDisableDelete($this->request->input('disable_delete') == '1');
     }
     Page::save($this->page);
 }
Пример #2
0
 public function admin()
 {
     parent::admin();
     return view("{$this->viewPrefix}/admin", ['page' => $this->page]);
 }