exists(storage_path('install.lock')); if ($hasLock) { return response()->view('setup.locked'); } return $next($request); } }