fix post crud
This commit is contained in:
@ -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"],
|
||||
|
Reference in New Issue
Block a user