webreinvent / laravel-nestable

Laravel 8 nested category/menu generator
MIT License
8 stars 2 forks source link

how to add none option in dropdown renderAsDropdown #4

Closed ShreeSoftech-Rupesh closed 10 months ago

ShreeSoftech-Rupesh commented 10 months ago

I am trying to render a dropdown in my code, and the code is working perfectly. However, I need to add a custom option in the dropdown called 'None,' and I want this option to appear in the first position. How can I achieve this using this package?

themodernpk commented 10 months ago

@ShreeSoftech-Rupesh you can refer to https://github.com/webreinvent/laravel-nestable?tab=readme-ov-file#using-independent-models