emil - Hi! sorry .. Formbuilder: something like...
# ❓questions
e
Hi! sorry .. Formbuilder: something like this is not intended to work:
Copy code
Select::make()
       ->name('type_id')
       ->label('Type')
       ->options(
              app()->make(TypeRepository::class)->listAll()->toArray()
),
i
Hi @emil what is your question? How to use listAll with the options method?
e
Hi @ifox yes - struggling to bring the options in ..
because HasOptions::options() accepts an array .. ?
i
You can use fromArray but you may run into the issue this PR is fixing: https://github.com/area17/twill/pull/2231
e
@ifox thank you! yes indeed!
now it s working like intended