2 Commits
0.4.6 ... 0.4.8

Author SHA1 Message Date
e5b3267762 get collection 2025-01-27 13:37:36 +03:00
7cdbff5ce9 fillable 2025-01-27 12:30:05 +03:00
2 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,7 @@ class EloquentDataProvider
$this->meta['baseUrl'] = $options['baseUrl'] ?? $model->table;
$this->meta['params'] = $options['params'] ?? [];
$this->meta['actions'] = $options['actions'] ?? [];
$this->meta['fillable'] = $options['fillable'] ?? null;
$this->meta['searchPrefix'] = $options['searchPrefix'] ?? '/search';
$this->meta['searchParams'] = $options['searchParams'] ?? [];
$this->meta['showFiltersRow'] = $options['showFiltersRow'] ?? true;

View File

@ -1,6 +1,7 @@
<?php
namespace Itguild\EloquentTable;
use Exception;
use Itguild\Tables\ListJsonTable;
use JetBrains\PhpStorm\NoReturn;
@ -19,4 +20,9 @@ class ListEloquentTable extends ListJsonTable
$this->dataProvider = $dataProvider;
parent::__construct($this->dataProvider->getJson());
}
public function getCollection()
{
return $this->dataProvider->getCollection();
}
}