get collection

This commit is contained in:
Kavalar 2025-01-27 13:37:36 +03:00
parent 7cdbff5ce9
commit e5b3267762

View File

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