getPathInfo(), '/wizard')) { return $next($request); } // Wizard not completed if (!setting('wizard.completed', 0)) { return $next($request); } // Wizard completed, redirect to home redirect()->intended('/')->send(); } }