outl1ne / nova-settings

A Laravel Nova tool for editing custom settings using native Nova fields.
MIT License
274 stars 97 forks source link

Unable to see settings menu when using Nova::mainMenu #151

Closed iabduul7 closed 1 year ago

iabduul7 commented 1 year ago

My boot method looks something like this

 public function boot()
    {
        parent::boot();

        Nova::mainMenu(function (Request $request) {
                    return [
                        MenuSection::make('Users', [
                            MenuItem::resource(User::class),
                        ])
                                   ->icon('user')
                                   ->collapsable(),

                    ];
                });
   }

Now if I add \Outl1ne\NovaSettings\NovaSettings::addSettingsFields([ Text::make('Some setting', 'some_setting'), ]); It does not show the settings menu unless I remove the Nova::mainMenu() function. Any solution for this?

Tarpsvo commented 1 year ago

https://github.com/outl1ne/nova-settings/issues/148