Ejemplo n.º 1
0
 public function loadAll()
 {
     try {
         $this->pages = Page::all();
     } catch (QueryException $e) {
         $this->pages = [];
     }
 }
 public function down()
 {
     /** @var Page $page */
     foreach (Page::all() as $page) {
         $page->view->delete();
         $page->view()->dissociate();
         $page->save();
     }
 }