diff --git a/config/filament-spatie-laravel-activitylog.php b/config/filament-spatie-laravel-activitylog.php index 655a13a..4406de4 100644 --- a/config/filament-spatie-laravel-activitylog.php +++ b/config/filament-spatie-laravel-activitylog.php @@ -4,7 +4,9 @@ 'resource' => [ 'group' => null, - 'sort' => null, + 'sort' => null, ], + 'paginate' => [5, 10, 25, 50], + ]; diff --git a/src/Resources/ActivityResource/Pages/ListActivities.php b/src/Resources/ActivityResource/Pages/ListActivities.php index fecec45..92fc9f0 100644 --- a/src/Resources/ActivityResource/Pages/ListActivities.php +++ b/src/Resources/ActivityResource/Pages/ListActivities.php @@ -8,4 +8,8 @@ class ListActivities extends ListRecords { protected static string $resource = ActivityResource::class; + protected function getTableRecordsPerPageSelectOptions(): array + { + return config('filament-spatie-laravel-activitylog.paginate') ?? parent::getTableRecordsPerPageSelectOptions(); + } }