F
Filament11mo ago
urbycoz

How can I get data into infolist without using aggregated attributes?

I've got an infolist with lots of TextEntry fields, many of which do not correspond directly to a database column, but instead use aggregated attributes on the Customer model. //Component TextEntry::make('Customer.customerDetails')->label('Customer Details') //Attribute in Customer model public function getCustomerDetailsAttribute(): string { //business logic to build customer details return $customerDetails; } However, this has led to my Customer model becoming very large and unwieldy. Is there a way to do this without the aggregated attributes, perhaps by passing a closure into the TextEntry component directly?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server