*/ class Install { public function handle(Request $request, \Closure $closure) { if (!file_exists(App::getRootPath() . '.env') && $request->isGet() && ($request->pathinfo() != 'install.html' || $request->rootUrl() != '/admin')) { return redirect(admin_url('install')); } return $closure($request); } }