concatenate fields on a select options
I am trying and to concatenate the name and rate fields for a select options
I tried
->getOptionLabelUsing(fn ($value): ?string => Tax::find($value)?->name. ' - '. Tax::find($value)?->rate. '%')
which doesnt work
any clues please
I tried
->getOptionLabelUsing(fn ($value): ?string => Tax::find($value)?->name. ' - '. Tax::find($value)?->rate. '%')
which doesnt work
any clues please