etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 459 forks source link

Working with two tables #212

Open matheusilario opened 8 years ago

matheusilario commented 8 years ago

Hello, I'm trying to use Baum with two tables but I am not able to implement. My intention is to have a table to store the category information as id, name, slug and status and normal Baum table with foreign key category_id. In cadegoria the registration'm trying to accomplish Tree :: create ([ 'name' => $ category-> name, 'category_id' => $ category-> category_id]); but it does not work. Someone has a tip?