src/Valkyrja/Routing/NativeRouter.php
protected function routeRequestMiddleware(Request $request, Route $route)
    {
        // If the route has no middleware
        if (null === $route->getMiddleware()) {
            // Return the request passed through
            return $request;
        }

        return $this->app->kernel()->requestMiddleware(
            $request,
            $route->getMiddleware()
        );
    }
protected function routeRequestMiddleware(Request $request, Route $route)
    {
        // If the route has no middleware
        if (null === $route->getMiddleware()) {
            // Return the request passed through
            return $request;
        }

        return $this->app->kernel()->requestMiddleware(
            $request,
            $route->getMiddleware()
        );
    }
Dispatch a route's before request handled middleware.

@param Request $request The request
@param Route   $route   The route

@return mixed