F
Filamentβ€’5mo ago
SebboRR

Many to Many (Polymorphic) in Table View

How do I get access and view the list of phone numbers.
Tables\Columns\TextColumn::make('phone2')
->getStateUsing(fn (Model $record): string => "{$record->phones}"),
Tables\Columns\TextColumn::make('phone2')
->getStateUsing(fn (Model $record): string => "{$record->phones}"),
No description
2 Replies
SebboRR
SebboRRβ€’5mo ago
Thank you very much, it worked πŸ˜‰
Want results from more Discord servers?
Add your server
More Posts
Trying to make a custom field (for custom complex component)Hi guys! I'm trying to make a custom field component for an edit resource page form. Here is what I How to make ToggleButtons span though the columns of formsI have the component in my form and the column span is the same as the numberof columns, however it Using $record in ListRecords and page table data in widgetI want to use a parameter in a `ListRecords` page. This is working fine, except when I want to add Multiple Panels, 1 Login ScreenHi, I am building filament v3 app that has multiple panels. Instead of having different login urls,Infolist Custom ViewEntry added form field validation.On a custom Infolist page, I added a new custom ViewEntry with a blade file, needs to validate all fhow to run javascript after clicking an actionI have an action that sets a field's value. The field is an hidden field which is responsible of onlImages & Barcode not working when web hosted (Hostinger)What I am trying to do: I want the barcode from milon barcode to work properly and image to actuallyTable interact with filtersFormHow can a table interact with filters form on a custom page that extends list records? Currently iTests: assertActionDoesNotExist failing for DeleteActionI have a simple test to check if my `DeleteAction`s are being hidden appropriately for users that docreateOptionUsing on select not called in livewire componentHey guys, I tried to add a form to a livewire component which works really well. Now I created a