diff --git a/config/filament-laravel-log.php b/config/filament-laravel-log.php index ef645b2..23bbc92 100644 --- a/config/filament-laravel-log.php +++ b/config/filament-laravel-log.php @@ -17,7 +17,7 @@ 'fontSize' => 12, /** - * Number of rows in the search bar + * Limit the number of results returned from the search. */ - 'searchBarRows' => 5, + 'limit' => 5, ]; diff --git a/src/Pages/ViewLog.php b/src/Pages/ViewLog.php index 0dd98b3..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(config('filament-laravel-log.searchBarRows')) + fn () => $this->getFileNames($this->getFinder())->take(config('filament-laravel-log.limit')) ) ->searchable() ->getSearchResultsUsing(