add view eloquent table

This commit is contained in:
2024-08-06 16:46:23 +03:00
parent a14f398532
commit 59599f0344
3 changed files with 82 additions and 0 deletions

View File

@ -5,6 +5,8 @@ use Illuminate\Container\Container;
use Itguild\EloquentTable\EloquentDataProvider;
use Itguild\EloquentTable\ListEloquentTable;
use Itguild\EloquentTable\models\User;
use Itguild\EloquentTable\ViewEloquentTable;
use Itguild\EloquentTable\ViewJsonTableEloquentModel;
use Itguild\Tables\ActionColumn\EditActionColumn;
use Itguild\Tables\ListJsonTable;
@ -50,3 +52,13 @@ try {
} catch (Exception $e) {
}
//try {
// $table = new ViewEloquentTable(new ViewJsonTableEloquentModel(User::find(1), [
// 'params' => ["class" => "table table-bordered", "border" => "2"],
// 'baseUrl' => "/admin/user",
// ]));
// $table->create();
// $table->render();
//} catch (Exception $e) {
//}