diff --git a/src/EloquentDataProvider.php b/src/EloquentDataProvider.php index 3727fb5..1ccc32d 100644 --- a/src/EloquentDataProvider.php +++ b/src/EloquentDataProvider.php @@ -48,6 +48,7 @@ class EloquentDataProvider $this->meta['baseUrl'] = $options['baseUrl'] ?? $model->table; $this->meta['params'] = $options['params'] ?? []; $this->meta['actions'] = $options['actions'] ?? []; + $this->meta['searchPrefix'] = $options['searchPrefix'] ?? '/search'; $this->meta['showFiltersRow'] = $options['showFiltersRow'] ?? true; $this->filters = $options['filters'] ?? []; $this->createQuery();