Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/Filament/Pages/Logs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App\Filament\Pages;

class Logs extends \RyanChandler\FilamentLog\Logs
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static ?string $navigationGroup = 'System';
}
2 changes: 1 addition & 1 deletion app/Filament/Pages/Settings/InfluxDbPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class InfluxDbPage extends SettingsPage

protected static ?string $navigationGroup = 'Settings';

protected static ?int $navigationSort = 3;
protected static ?int $navigationSort = 2;

protected static ?string $title = 'InfluxDB';

Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Pages/Settings/NotificationPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class NotificationPage extends SettingsPage

protected static ?string $navigationGroup = 'Settings';

protected static ?int $navigationSort = 2;
protected static ?int $navigationSort = 3;

protected static ?string $title = 'Notifications';

Expand Down
7 changes: 1 addition & 6 deletions app/Providers/FilamentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

namespace App\Providers;

use App\Models\User;
use Filament\Facades\Filament;
use Filament\Navigation\NavigationItem;
use Illuminate\Support\ServiceProvider;
use RyanChandler\FilamentLog\Logs;

class FilamentServiceProvider extends ServiceProvider
{
Expand All @@ -27,13 +25,10 @@ public function register()
*/
public function boot()
{
Logs::can(function (User $user) {
return config('app.debug');
});

Filament::serving(function () {
Filament::registerNavigationGroups([
'Settings',
'System',
'Links',
]);

Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions config/filament-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

return [

/*
|--------------------------------------------------------------------------
| Pages
|--------------------------------------------------------------------------
|
| You may replace the registered page and alter to your own liking.
|
*/

'pages' => [
App\Filament\Pages\Logs::class,
],

/*
|--------------------------------------------------------------------------
| Paths
Expand Down