public function index($id = null)
    {
        if ($this->authProviderService->getEnabledDrivers()->isEmpty()) {
            return $this->redirectWithMessage(handles('antares/foundation::account'), trans('antares/api::response.no_active_api_providers'), 'error');
        }

        $this->breadcrumb->onUserConfig();
        $model = ApiUsers::query()->firstOrCreate(['user_id' => user($id)->id]);
        $form  = $this->getForm($model);
        event("antares.form: user.api", [$model, $form]);
        return view('antares/api::admin.user.index', compact('form'));
    }
public function index($id = null)
    {
        if ($this->authProviderService->getEnabledDrivers()->isEmpty()) {
            return $this->redirectWithMessage(handles('antares/foundation::account'), trans('antares/api::response.no_active_api_providers'), 'error');
        }

        $this->breadcrumb->onUserConfig();
        $model = ApiUsers::query()->firstOrCreate(['user_id' => user($id)->id]);
        $form  = $this->getForm($model);
        event("antares.form: user.api", [$model, $form]);
        return view('antares/api::admin.user.index', compact('form'));
    }
public function index ( $ id = null ) { if ( $ this -> authProviderService -> getEnabledDrivers ( ) -> isEmpty ( ) ) { return $ this -> redirectWithMessage ( handles ( 'antares/foundation::account' ) , trans ( 'antares/api::response.no_active_api_providers' ) , 'error' ) ; } $ this -> breadcrumb -> onUserConfig ( ) ; $ model = ApiUsers :: query ( ) -> firstOrCreate ( [ 'user_id' => user ( $ id ) -> id ] ) ; $ form = $ this -> getForm ( $ model ) ; event ( "antares.form: user.api" , [ $ model , $ form ] ) ; return view ( 'antares/api::admin.user.index' , compact ( 'form' ) ) ; }
User api configuration

@param mixed $id
@return mixed
User api configuration