protected function registerMiddleware() { foreach ($this->routeMiddleware as $key => $middleware) { $this->router->middleware($key, $middleware); } }