© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Soundmit

Concatenate 2 fields in infoList

Need to formatStateUsing of a textEntry in my infolist by concatenate his value + the value of another field
 ->formatStateUsing(function ($state, Repair $record) {
   $state = PaymentStatus::getLabel($state);
   $dep = $record->dep_payment_status; //value in euro
   return $state . ' ' . $dep; // Partial paid 30€
})       
 ->formatStateUsing(function ($state, Repair $record) {
   $state = PaymentStatus::getLabel($state);
   $dep = $record->dep_payment_status; //value in euro
   return $state . ' ' . $dep; // Partial paid 30€
})       

but i get this error
Non-static method App\Enums\PaymentStatus::getLabel() cannot be called statically
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

concatenate fields on a select options
FilamentFFilament / ❓┊help
3y ago
concatenate in titleAttribute
FilamentFFilament / ❓┊help
3y ago
concatenate value in text column
FilamentFFilament / ❓┊help
3y ago
infolist inlineLabel 2 column
FilamentFFilament / ❓┊help
2mo ago