src/Providers/MiddlewareServiceProvider.php
protected function registerApiRouteMiddleware()
    {
        foreach ($this->getApiRouteMiddleware() as $key => $middleware) {
            $this->router->aliasMiddleware($key, $middleware);
        }

        return $this;
    }
protected function registerApiRouteMiddleware()
    {
        foreach ($this->getApiRouteMiddleware() as $key => $middleware) {
            $this->router->aliasMiddleware($key, $middleware);
        }

        return $this;
    }
protected function registerApiRouteMiddleware ( ) { foreach ( $ this -> getApiRouteMiddleware ( ) as $ key => $ middleware ) { $ this -> router -> aliasMiddleware ( $ key , $ middleware ) ; } return $ this ; }
Registers route middleware for the CMS API.

@return $this
Registers route middleware for the CMS API .