From fde436b149591b48f32e9383ede13b1403f80754 Mon Sep 17 00:00:00 2001 From: Miles Wu Date: Tue, 21 Jun 2022 12:49:14 +0800 Subject: [PATCH] add:Sorting navigation items --- config/filament-laravel-log.php | 5 +++++ src/Pages/ViewLog.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/config/filament-laravel-log.php b/config/filament-laravel-log.php index d7fa576..9a67229 100644 --- a/config/filament-laravel-log.php +++ b/config/filament-laravel-log.php @@ -26,6 +26,11 @@ */ 'navigationGroup' => 'System', + /** + * Navigation sort. + */ + 'navigationSort' => 1, + /** * Navigation icon. */ diff --git a/src/Pages/ViewLog.php b/src/Pages/ViewLog.php index fd97213..71ec822 100644 --- a/src/Pages/ViewLog.php +++ b/src/Pages/ViewLog.php @@ -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');