public function compose()
    {
        if ($this->authProviderService->getEnabledDrivers()->isEmpty()) {
            return false;
        }


        return app('antares.widget')
                        ->make('menu.control.pane')
                        ->add('api')
                        ->link(handles('antares::api/user/index'))
                        ->title(trans('antares/api::title.configuration'))
                        ->icon('zmdi-device-hub');
    }
public function compose()
    {
        if ($this->authProviderService->getEnabledDrivers()->isEmpty()) {
            return false;
        }


        return app('antares.widget')
                        ->make('menu.control.pane')
                        ->add('api')
                        ->link(handles('antares::api/user/index'))
                        ->title(trans('antares/api::title.configuration'))
                        ->icon('zmdi-device-hub');
    }
public function compose ( ) { if ( $ this -> authProviderService -> getEnabledDrivers ( ) -> isEmpty ( ) ) { return false ; } return app ( 'antares.widget' ) -> make ( 'menu.control.pane' ) -> add ( 'api' ) -> link ( handles ( 'antares::api/user/index' ) ) -> title ( trans ( 'antares/api::title.configuration' ) ) -> icon ( 'zmdi-device-hub' ) ; }
Composing menu on view event

@return \Antares\Foundation\Support\MenuHandler
Composing menu on view event