From 13b54a563daa262a3cb71271ccf79dad39a9158d Mon Sep 17 00:00:00 2001 From: Kavalar Date: Mon, 23 Dec 2024 16:52:20 +0300 Subject: [PATCH] search prefix --- src/EloquentDataProvider.php | 1 + 1 file changed, 1 insertion(+) 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();