This commit is contained in:
net909 2024-12-21 19:02:09 +08:00
parent 1e638b5e4c
commit 259693fb3f

View File

@ -21,7 +21,7 @@ class LoadConfig
public function handle($request, \Closure $next)
{
if (!file_exists(app()->getRootPath().'.env')) {
if (strpos($this->request->url(), '/install') === false) {
if (strpos($request->url(), '/install') === false) {
return redirect((string)url('/install'))->header([
'Cache-Control' => 'no-store, no-cache, must-revalidate',
'Pragma' => 'no-cache',