Two level relation in select

How can I show the title of two level relation in a Select element e.g. the structure is like this: accounting->creditCard->bank->bank_name Now I am in accounting resource and only have access to bank_id in credit_cards table with creditCard relationship but I want to have access to the next relationship to get access to bank_name value
1 Reply
LeandroFerreira
maybe
Card::make()
->relationship('creditCard')
->schema([
//Select
])
Card::make()
->relationship('creditCard')
->schema([
//Select
])
https://filamentphp.com/docs/2.x/forms/layout#saving-data-to-relationships
Filament
Layout - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
Want results from more Discord servers?
Add your server