2 Commits
0.4.3 ... 0.4.5

Author SHA1 Message Date
13b54a563d search prefix 2024-12-23 16:52:20 +03:00
a3b5f5fa0c fix filter row 2024-12-23 15:05:02 +03:00

View File

@ -48,6 +48,8 @@ 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();
$this->jsonStr = (new JSONCreator($this->meta, $this->getCollection()->toArray(), $this->filters,))->getJson();