Skip to content

Commit 410ad83

Browse files
scott graysonscott grayson
authored andcommitted
feat: customize sidebar navigation
- Change navigation group to 'Resource Library' - Change navigation label to 'All Folders' - Update URL from /library-items to /library
1 parent b35ba39 commit 410ad83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Resources/LibraryItemResource.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ class LibraryItemResource extends Resource
1818

1919
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-folder';
2020

21-
protected static string|\UnitEnum|null $navigationGroup = 'Library';
21+
protected static string|\UnitEnum|null $navigationGroup = 'Resource Library';
2222

2323
protected static ?int $navigationSort = 10;
2424

25-
protected static ?string $navigationLabel = 'Library';
25+
protected static ?string $navigationLabel = 'All Folders';
2626

2727
protected static ?string $modelLabel = 'Library Item';
2828

@@ -106,9 +106,9 @@ public static function getRelations(): array
106106
public static function getPages(): array
107107
{
108108
return [
109-
'index' => Pages\ListLibraryItems::route('/'),
110-
'create' => Pages\CreateLibraryItem::route('/create'),
111-
'edit' => Pages\EditLibraryItem::route('/{record}/edit'),
109+
'index' => Pages\ListLibraryItems::route('/library'),
110+
'create' => Pages\CreateLibraryItem::route('/library/create'),
111+
'edit' => Pages\EditLibraryItem::route('/library/{record}/edit'),
112112
];
113113
}
114114
}

0 commit comments

Comments
 (0)