webreinvent / laravel-nestable

Laravel 8 nested category/menu generator
MIT License
8 stars 2 forks source link

Laravel-nestable with where clause #2

Closed muhrizwan closed 3 years ago

muhrizwan commented 3 years ago

is there a way to query nested categories with where clause e.g,

$categories = Category::where('some_column', $some_value)->nested()->get();

or how can we do it with laravel built-in where clause or some other way to get nested specific results?

muhrizwan commented 3 years ago

OK.. I have solved this issue by Using Independent Models