FilamentF
Filament2y ago
Sayy

How to get data if status active

i want to get select data from supplier name, but i just get if status active and how to get the data ?

Forms\Components\Select::make('suppliers_id')

                        ->relationship('suppliers', 'name')

                        ->options(fn (Suppliers $state) => $state->status == 'active')

                        ->required(),
Was this page helpful?