diff --git a/config/filament-laravel-log.php b/config/filament-laravel-log.php index f33b12a..23bbc92 100644 --- a/config/filament-laravel-log.php +++ b/config/filament-laravel-log.php @@ -15,4 +15,9 @@ * Editor font size. */ 'fontSize' => 12, + + /** + * Limit the number of results returned from the search. + */ + 'limit' => 5, ]; diff --git a/src/Pages/ViewLog.php b/src/Pages/ViewLog.php index 2587f23..f6b4310 100644 --- a/src/Pages/ViewLog.php +++ b/src/Pages/ViewLog.php @@ -29,7 +29,7 @@ public function form(Form $form): Form ->placeholder(fn (): string => __('log::filament-laravel-log.page.form.placeholder')) ->live() ->options( - fn () => $this->getFileNames($this->getFinder())->take(5) + fn () => $this->getFileNames($this->getFinder())->take(config('filament-laravel-log.limit')) ) ->searchable() ->getSearchResultsUsing(