FilamentF
Filament16mo ago
Liam

Descriptions on CheckboxList (relationship)

Hi, I'm using this to display permissions in my user management system. Is it possible to load descriptions from the relationship without explicitly defining them in the descriptions method?

 Forms\Components\CheckboxList::make('permissions')
                            ->label('')
                            ->relationship(
                                titleAttribute: 'display_name',
                                modifyQueryUsing: fn (Builder $query) => $query->orderBy('order'),
                            )
                            ->bulkToggleable()
                            ->columns(2),
Was this page helpful?