Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
e5b3267762 | |||
7cdbff5ce9 |
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user