Fix methodOverride middleware and dependencies versions