private function registerApiMiddleware()
    {
        /** @var  \Illuminate\Contracts\Config\Repository  $config */
        $config = $this->app['config'];

        foreach ($config->get('api-helper.middleware', []) as $name => $class) {
            $this->aliasMiddleware($name, $class);
        };
    }
private function registerApiMiddleware()
    {
        /** @var  \Illuminate\Contracts\Config\Repository  $config */
        $config = $this->app['config'];

        foreach ($config->get('api-helper.middleware', []) as $name => $class) {
            $this->aliasMiddleware($name, $class);
        };
    }
private function registerApiMiddleware ( ) { /** @var  \Illuminate\Contracts\Config\Repository  $config */ $ config = $ this -> app [ 'config' ] ; foreach ( $ config -> get ( 'api-helper.middleware' , [ ] ) as $ name => $ class ) { $ this -> aliasMiddleware ( $ name , $ class ) ; } ; }
Register the API route Middleware.
Register the API route Middleware .