fix: allow telescope
This commit is contained in:
parent
713496575c
commit
8967eeb7ea
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue