From b184a731761a14d37edd8ab2427199a8c7716f90 Mon Sep 17 00:00:00 2001 From: useahawk Date: Tue, 5 Jul 2022 15:46:19 +0200 Subject: [PATCH] Update navigation.md Groups don't seem to work without section --- basics/navigation.md | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/basics/navigation.md b/basics/navigation.md index 1dac397..5f1998a 100644 --- a/basics/navigation.md +++ b/basics/navigation.md @@ -74,18 +74,23 @@ $nav->entry('Home', [ ### Groups -Create nested navigation entries in groups. +Create nested navigation entries in groups. Groups are part of sections. ```php -$nav->group([ - 'title' => 'Pages', - 'icon' => '', -], [ +$nav->section([ - $nav->entry(...), - ... + // The Section title describes the following set of navigation entries. + $nav->title('Bookings'), + $nav->group([ + 'title' => 'Pages', + 'icon' => '' + ], [ -]), + $nav->entry(...), + ... + + ]) +]); ``` ### Authorization