is('setup*')) { return redirect(config('app.url')); } else { return $next($request); } } else { if (!($request->is('setup*')) && !($request->is('.env'))) { return redirect(config('app.url').'/setup')->with('Request', $request); } return $next($request); } } }