diff --git a/app/middleware/LoadConfig.php b/app/middleware/LoadConfig.php index 2502714..92b0e04 100644 --- a/app/middleware/LoadConfig.php +++ b/app/middleware/LoadConfig.php @@ -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',