getRootPath().'.env')){ if(strpos(request()->url(),'/installapp')===false){ return redirect((string)url('/installapp'))->header([ 'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Pragma' => 'no-cache', ]); }else{ return $next($request); } } $res = Db::name('config')->cache('configs',0)->column('value','key'); Config::set($res, 'sys'); View::assign('cdnpublic', '//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/'); return $next($request)->header([ 'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Pragma' => 'no-cache', ]); } }