Alvika Aji Prahasta
Using Sushi for table with static data error
solved, i followed the documentation of sushi. it should be here:
//Delete this model if exists filament v4 support static table
class TableRetirementCalculation extends Model
{
use HasFactory, Sushi;
protected $rows = [
[
'item' => 'Current Age',
'value' => null,
],
[
'item' => 'Ideal Monthly Income based on todays value',
'value' => null,
],
[
'item' => 'Ideal Retirement Age',
'value' => null,
],
[
'item' => 'Years to Retirement',
'value' => null,
],
[
'item' => 'Inflation Rate',
'value' => null,
],
[
'item' => 'Years to Receive Income',
'value' => null,
],
[
'item' => 'Retirement Fund needed at Retirement Age (after inflation)',
'value' => null,
],
];
}
5 replies