fix post crud

This commit is contained in:
2024-07-26 11:57:05 +03:00
parent 25e585655c
commit f5f546ba95
10 changed files with 42 additions and 38 deletions

View File

@ -1,7 +1,7 @@
<?php
/**
* @var \Illuminate\Database\Eloquent\Collection $posts
* @var \Illuminate\Database\Eloquent\Collection $contents
*/
use app\models\Post;
@ -12,7 +12,7 @@ use Itguild\Tables\ListJsonTable;
use kernel\IGTabel\btn\PrimaryBtn;
use kernel\IGTabel\ListJsonTableEloquentCollection;
$dataProvider = new ListJsonTableEloquentCollection($posts, [
$dataProvider = new ListJsonTableEloquentCollection($contents, [
'model' => Post::class,
'perPage' => 5,
'params' => ["class" => "table table-bordered", "border" => "2"],