unregisterMiddleware
Unregisters the currently active middleware and restores the default middleware.
If the current middleware is not the default one, this function detaches the active middleware, resets the middleware state to the default, and attaches the default middleware to the context.