Skip to content

Commit e6eb19f

Browse files
authored
Navigation updates (alexjustesen#165)
1 parent 1472ba4 commit e6eb19f

File tree

6 files changed

+32
-14
lines changed

6 files changed

+32
-14
lines changed

app/Filament/Pages/Logs.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace App\Filament\Pages;
4+
5+
class Logs extends \RyanChandler\FilamentLog\Logs
6+
{
7+
protected static ?string $navigationIcon = 'heroicon-o-document-text';
8+
9+
protected static ?string $navigationGroup = 'System';
10+
}

app/Filament/Pages/Settings/InfluxDbPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class InfluxDbPage extends SettingsPage
1616

1717
protected static ?string $navigationGroup = 'Settings';
1818

19-
protected static ?int $navigationSort = 3;
19+
protected static ?int $navigationSort = 2;
2020

2121
protected static ?string $title = 'InfluxDB';
2222

app/Filament/Pages/Settings/NotificationPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class NotificationPage extends SettingsPage
2525

2626
protected static ?string $navigationGroup = 'Settings';
2727

28-
protected static ?int $navigationSort = 2;
28+
protected static ?int $navigationSort = 3;
2929

3030
protected static ?string $title = 'Notifications';
3131

app/Providers/FilamentServiceProvider.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
namespace App\Providers;
44

5-
use App\Models\User;
65
use Filament\Facades\Filament;
76
use Filament\Navigation\NavigationItem;
87
use Illuminate\Support\ServiceProvider;
9-
use RyanChandler\FilamentLog\Logs;
108

119
class FilamentServiceProvider extends ServiceProvider
1210
{
@@ -27,13 +25,10 @@ public function register()
2725
*/
2826
public function boot()
2927
{
30-
Logs::can(function (User $user) {
31-
return config('app.debug');
32-
});
33-
3428
Filament::serving(function () {
3529
Filament::registerNavigationGroups([
3630
'Settings',
31+
'System',
3732
'Links',
3833
]);
3934

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/filament-log.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
return [
44

5+
/*
6+
|--------------------------------------------------------------------------
7+
| Pages
8+
|--------------------------------------------------------------------------
9+
|
10+
| You may replace the registered page and alter to your own liking.
11+
|
12+
*/
13+
14+
'pages' => [
15+
App\Filament\Pages\Logs::class,
16+
],
17+
518
/*
619
|--------------------------------------------------------------------------
720
| Paths

0 commit comments

Comments
 (0)