Skip to content

Commit

Permalink
Merge pull request #1 from edwink75/feature/configurable-pagination-o…
Browse files Browse the repository at this point in the history
…ptions

Feature/configurable pagination options
  • Loading branch information
edwink75 authored May 16, 2024
2 parents 37bcdc6 + b70345e commit d1bcc25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ return [
'can_access' => [
'role' => [],
],
'pagination_page_options' => [
10, 50, 100
]

//Use this option for customize tenant model class
//'tenant_model' => \App\Models\Team::class,
Expand Down
3 changes: 3 additions & 0 deletions config/filament-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
'can_access' => [
'role' => [],
],
'pagination_page_options' => [
10, 50, 100
]

//Use this option for customize tenant model class
//'tenant_model' => \App\Models\Team::class,
Expand Down
3 changes: 2 additions & 1 deletion src/Filament/Resources/EmailResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ public static function table(Table $table): Table
fn (Builder $query, $value): Builder => $query->where('created_at', '<=', $value),
);
}),
]);
])
->paginationPageOptions(config('filament-email.pagination_page_options', $table->getPaginationPageOptions()));
}

public static function getPages(): array
Expand Down

0 comments on commit d1bcc25

Please sign in to comment.