18 lines
335 B
PHP
18 lines
335 B
PHP
<?php
|
|
|
|
namespace App\Traits\Datatable;
|
|
|
|
use Rappasoft\LaravelLivewireTables\Views\Column;
|
|
|
|
trait WithAppendColumn
|
|
{
|
|
public function appendColumns(): array
|
|
{
|
|
return [
|
|
Column::make('Dibuat', 'created_at')
|
|
->sortable()
|
|
->hideIf($this->hideCreatedAt ?? true),
|
|
];
|
|
}
|
|
}
|