From 321e0eccb59b23a027ca436f4592c104bf8469ab Mon Sep 17 00:00:00 2001 From: Damien MATHIEU Date: Sun, 24 Nov 2024 00:43:38 +0100 Subject: [PATCH] Add nestedArray() to database NestedTree trait (#221) --- database/traits.md | 1 + 1 file changed, 1 insertion(+) diff --git a/database/traits.md b/database/traits.md index 1b8d410e..8991e53e 100644 --- a/database/traits.md +++ b/database/traits.md @@ -316,6 +316,7 @@ const NEST_DEPTH = 'my_depth_column'; - `$query->leaves();` - Filters as all final nodes without children. - `$query->getNested();` - Returns an eager loaded collection of results. - `$query->listsNested();` - Returns an indented array of key and value columns. +- `$query->nestedArray();` - Returns an nested array of key and values columns. ### Flat result access methods