atayahmet / laravel-nestable

Laravel 5 nested category/menu generator
MIT License
214 stars 52 forks source link

Use package in multiple models #69

Closed josegus closed 5 years ago

josegus commented 5 years ago

image

The config options are forcing me to name my foreign key like this value. How can i use this package in different recursive models? I have product, category, an brand models, all of this has product_id, category_id and brand_id as foreign key.

atayahmet commented 5 years ago

Hi @josegus

Unfortunately there are no this feature.

josegus commented 5 years ago

are pull request allowed? I mean, a pull request making this option available. No breaking changes, just extend the actual config.

atayahmet commented 5 years ago

I definitely accept. Please add your tests.