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

How can I get only active records from categiries?

Open flight1990 opened this issue 3 years ago • 0 comments

If I try to get only active records, the tree don't builds properly. For example: Category::where(is_active, 1)->get()->toTree();

Please help somebody!

flight1990 avatar Jun 17 '22 14:06 flight1990