for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Adminetic\Website\Http\Livewire\Admin\Payment;
use Adminetic\Website\Models\Admin\Payment;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;
class PaymentTable extends DataTableComponent
{
protected $model = Payment::class;
public function configure(): void
$this->setPrimaryKey('id');
}
public function columns(): array
return [
Column::make('Id', 'id')
->sortable(),
Column::make('Particular', 'particular')
Column::make('Amount', 'amount')
Column::make('Type', 'type')
Column::make('Paymentable type', 'paymentable_type')
Column::make('Created at', 'created_at')
Column::make('Updated at', 'updated_at')
];