We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello community and thanks to creators for beautiful package! Suppose I have a tree:
I need search children and grandsons (and next depth levels) but tree should be like above (in natural order).
After search:
Category::with('ancestors') ->when($request->title, function ($query) use ($request) { $locale = app()->getLocale(); $title = $request->title; $sql = "title::json->>'$locale' ilike '%$title%'"; $query->whereRaw($sql); });
I get something like:
But I need normal tree. I must do reverse by hand or there is a way?
reversed() doesn't do the job, it is reverse in one depth but I need swap ancestors and descendants (the most depth level should be first) Thanx.
The text was updated successfully, but these errors were encountered:
Same issue here. Does anyone has any ideas?
Sorry, something went wrong.
No branches or pull requests
Hello community and thanks to creators for beautiful package!
Suppose I have a tree:
-- child1
-- child2
--- grandson1
--- grandson2
and so on...
I need search children and grandsons (and next depth levels) but tree should be like above (in natural order).
After search:
I get something like:
-- ancestors[
--- child1
---- ancestors [
----- parent1
]
]
But I need normal tree. I must do reverse by hand or there is a way?
reversed() doesn't do the job, it is reverse in one depth but I need swap ancestors and descendants (the most depth level should be first)
Thanx.
The text was updated successfully, but these errors were encountered: