redirect('@admin'); $version = Db::query('select version() as ver'); $version = array_pop($version); $this->assign('mysql_ver', $version['ver']); return view(); } }