Can Laravel specify other controller in the middleware without changing the content of the address bar?

can laravel specify other controller in the middleware without changing the content of the address bar (that is, not using redirect)

    public function handle($request, Closure $next)
    {
        if(!($request->is("admin/*") || $request->is("allfront")))
        {
            return redirect()->route("allfront");
        }
        return $next($request);
    }

if redirect is used, the content of the address bar will change, and a new request should be generated. I intend to leave the original request unchanged here, just to execute a controller provided by me

Oct.09,2021

request Controller directly

$controller = App::make (AppHttpControllersAdminController::class);
App::call ([$controller, "allfront"]);

Menu