Skip to content

Commit

Permalink
Ability to control the ActivityResource navigation sort and if scoped…
Browse files Browse the repository at this point in the history
… to tenant
  • Loading branch information
silviugd committed Jun 24, 2024
1 parent 370ab53 commit d8a891c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
'date_format' => 'd/m/Y',

'activity_resource' => \Z3d0X\FilamentLogger\Resources\ActivityResource::class,
'scoped_to_tenant' => true,
'navigation_sort' => null,

'resources' => [
'enabled' => true,
'log_name' => 'Resource',
'logger' => \Z3d0X\FilamentLogger\Loggers\ResourceLogger::class,
'color' => 'success',
'scoped_to_tenant' => true,

'exclude' => [
//App\Filament\Resources\UserResource::class,
],
Expand Down
8 changes: 7 additions & 1 deletion src/Resources/ActivityResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,13 @@ public static function getNavigationIcon(): string

public static function isScopedToTenant(): bool
{
return config('filament-logger.resources.scoped_to_tenant', true);
return config('filament-logger.scoped_to_tenant', true);
}

public static function getNavigationSort(): ?int
{
return config('filament-logger.navigation_sort', null);
}


}

0 comments on commit d8a891c

Please sign in to comment.