public function getPage() { $page = Page::getConstantModel(); if (!$page->active) { return abort(404); } $template = Config('lara-cms.master.template'); if (isset($template[$page->template])) { $tpl = $template[$page->template]; } else { $tpl = 'page'; } return response(View::make('eva::tpl.' . $tpl, compact(['page'])), 200)->header('Content-Type', 'text/html'); }