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?
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?