outl1ne / nova-menu-builder

This Laravel Nova package allows you to create and manage menus and menu items.
MIT License
242 stars 86 forks source link

Use configured model in the HTTP Controller #176

Closed Senexis closed 1 year ago

Senexis commented 1 year ago

Currently it is impossible to extend the base Menu model using the configuration option in the HTTP Controller MenuController. It will always use Outl1ne\MenuBuilder\Models\Menu. We're using this for adding traits onto the model, but as the reference is static to Outl1ne\MenuBuilder\Models\Menu, it will never use those traits when performing model operations within Nova (such as doing something when models are saved by using static::saved).

Please, instead of using the Outl1ne\MenuBuilder\Models\Menu model use the one defined in the config file (nova-menu.menu_item_model).

Tarpsvo commented 1 year ago

Heya! Sorry about the delay. The references are now fixed in 7.1.3. :)