fix: allow telescope

This commit is contained in:
philipp lang 2022-09-05 23:21:56 +02:00
parent 713496575c
commit 8967eeb7ea
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ class RedirectIfNotInitializedMiddleware
*/ */
public function handle($request, Closure $next) public function handle($request, Closure $next)
{ {
if (1 === preg_match('/\/telescope/', $request->url())) {
return $next($request);
}
if ($this->initialized() && request()->routeIs(['initialize.form'])) { if ($this->initialized() && request()->routeIs(['initialize.form'])) {
return redirect()->to(RouteServiceProvider::HOME); return redirect()->to(RouteServiceProvider::HOME);
} }