public function boot()
    {
        parent::boot();
        $router = $this->app->make(Router::class);


        $this->app->bind(RouterAdapter::class, function($app) {
            return new RouterAdapter($app->make(ApiRouter::class), $app->make(ControllerFinder::class), $app['config']['api']);
        });
        $this->app->bind('api-roles', function() {
            return new ApiRoles();
        });
        if (!App::runningInConsole()) {
            $this->registerApiAuth($this->app->make(AuthProviderService::class));
        }
        $router->pushMiddlewareToGroup('api', ApiMiddleware::class);
        $this->app->make('view')->composer(['antares/api::admin.user.*'], AccountPlaceholder::class);
        $this->app->make('view')->composer(['antares/foundation::account.*', 'antares/logger::admin.devices.*', 'antares/api::admin.user.*'], MenuUser::class);
        $this->app->make('view')->composer('antares/api::admin.configuration.*', ControlPane::class);
    }
public function boot()
    {
        parent::boot();
        $router = $this->app->make(Router::class);


        $this->app->bind(RouterAdapter::class, function($app) {
            return new RouterAdapter($app->make(ApiRouter::class), $app->make(ControllerFinder::class), $app['config']['api']);
        });
        $this->app->bind('api-roles', function() {
            return new ApiRoles();
        });
        if (!App::runningInConsole()) {
            $this->registerApiAuth($this->app->make(AuthProviderService::class));
        }
        $router->pushMiddlewareToGroup('api', ApiMiddleware::class);
        $this->app->make('view')->composer(['antares/api::admin.user.*'], AccountPlaceholder::class);
        $this->app->make('view')->composer(['antares/foundation::account.*', 'antares/logger::admin.devices.*', 'antares/api::admin.user.*'], MenuUser::class);
        $this->app->make('view')->composer('antares/api::admin.configuration.*', ControlPane::class);
    }
public function boot ( ) { parent :: boot ( ) ; $ router = $ this -> app -> make ( Router :: class ) ; $ this -> app -> bind ( RouterAdapter :: class , function ( $ app ) { return new RouterAdapter ( $ app -> make ( ApiRouter :: class ) , $ app -> make ( ControllerFinder :: class ) , $ app [ 'config' ] [ 'api' ] ) ; } ) ; $ this -> app -> bind ( 'api-roles' , function ( ) { return new ApiRoles ( ) ; } ) ; if ( ! App :: runningInConsole ( ) ) { $ this -> registerApiAuth ( $ this -> app -> make ( AuthProviderService :: class ) ) ; } $ router -> pushMiddlewareToGroup ( 'api' , ApiMiddleware :: class ) ; $ this -> app -> make ( 'view' ) -> composer ( [ 'antares/api::admin.user.*' ] , AccountPlaceholder :: class ) ; $ this -> app -> make ( 'view' ) -> composer ( [ 'antares/foundation::account.*' , 'antares/logger::admin.devices.*' , 'antares/api::admin.user.*' ] , MenuUser :: class ) ; $ this -> app -> make ( 'view' ) -> composer ( 'antares/api::admin.configuration.*' , ControlPane :: class ) ; }
Boots service provider
Boots service provider