You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a $node like $node = new Category(); and have saved the category. I then use the parent's children relationship to create a child node like this $parent->children()->create($attributes); This gets properly saved in the database but when i use the descendants relationship it shows an empty array but in the database, it shows the parent_id column as having a parent.
I have created a
$node
like$node = new Category();
and have saved the category. I then use the parent's children relationship to create a child node like this$parent->children()->create($attributes);
This gets properly saved in the database but when i use the descendants relationship it shows an empty array but in the database, it shows the parent_id column as having a parent.It comes off a a blank array
[]
The text was updated successfully, but these errors were encountered: