F
Filament2mo 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(),
Forms\Components\Select::make('suppliers_id')

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

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

->required(),
2 Replies