MiddlewaresTrait