Exemplo n.º 1
0
 public static function getLayoutId()
 {
     $pageId = AppHelper::getPageid();
     $layoutIds = Page::whereId($pageId)->get();
     foreach ($layoutIds as $value) {
         $layoutId = $value['layout_id'];
     }
     return $layoutId;
 }
Exemplo n.º 2
0
 public static function getPageDescription()
 {
     $id = AppHelper::getPageid();
     $page = Page::find($id);
     return $page->description;
 }