How to Sum relationship column with cast field
Hi Im Using PGSQL
And I got Error On Image
And this is my code
Thx U All
And I got Error On Image
And this is my code
Thx U All

TextColumn::make('pengeluarans_sum_debit')
->label('Total Pemasukan')
->sum('pengeluarans', 'debit')
->money('IDR'),