Skip to content

Commit

Permalink
add:Sorting navigation items
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesWuCode committed Jun 21, 2022
1 parent 1a0e9bd commit fde436b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/filament-laravel-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
*/
'navigationGroup' => 'System',

/**
* Navigation sort.
*/
'navigationSort' => 1,

/**
* Navigation icon.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Pages/ViewLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ protected static function getNavigationGroup(): ?string
return config('filament-laravel-log.navigationGroup');
}

protected static function getNavigationSort(): ?int
{
return config('filament-laravel-log.navigationSort');
}

protected static function getNavigationIcon(): string
{
return config('filament-laravel-log.navigationIcon');
Expand Down

0 comments on commit fde436b

Please sign in to comment.