This commit is contained in:
ludo
2025-02-15 12:12:42 +01:00
parent 0f32386406
commit 08fc49cb61
53 changed files with 1098 additions and 404 deletions

View File

@@ -17,7 +17,7 @@ class CommentsDataTable extends DataTable
public function query(Comment $model)
{
$model = $model::with(['user'])->select('*');
$model = $model::with(['commentator'])->select('*');
return $this->buildQuery($model);
}
@@ -26,7 +26,7 @@ class CommentsDataTable extends DataTable
{
return [
Column::make('updated_at')->title(__('date'))->width('80')->class('text-center')->searchable(false),
Column::make('user.name')->title(__('name'))->searchable(false),
Column::make('commentator.name')->title(__('name'))->searchable(false),
Column::make('comment')->title(__('comments'))->searchable(false),
$this->makeColumnButtons(),
];