Skip to content

Commit

Permalink
Merge pull request #7 from MilesWuCode/main
Browse files Browse the repository at this point in the history
feat: sorting navigation items
  • Loading branch information
saade authored Jun 21, 2022
2 parents 1a0e9bd + fde436b commit 4fe4bce
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 4fe4bce

Please sign in to comment.