laravel-nestedset icon indicating copy to clipboard operation
laravel-nestedset copied to clipboard

Can I create a separate relation table as user_hierarchy while making a migration file?

Open amitshahc opened this issue 5 years ago • 2 comments

Currently the migration style is such that, it adds columns into existing users table. My aim is to create a separate relation table named user_hierarchy/user_tree with user_id as foreign key in it.

  1. is it possible?

  2. what changes i need to do in my user model (relations) so that the plugin works without any extra modifications.

amitshahc avatar Jan 04 '20 05:01 amitshahc

Same issue, @amitshahc did you find any way to achieve this??

mohammad19khodaei avatar Jan 04 '21 18:01 mohammad19khodaei

Same issue, @amitshahc did you find any way to achieve this??

nope, I didn't have enough time to follow up this.

amitshahc avatar Jan 06 '21 17:01 amitshahc