Already implemented via all method, see here
all
Are you sure it is already implemented for the "Before Route Middleware"? all() method does not change the beforeRoutes array
all()
beforeRoutes