Assign an array to a Forms\Components\Select
How can I assign an array to a Forms\Components\Select? After executing the Action 'refresh_status', the Select options should be set with $statuses.
$statuses has the value:
[
"pending" => "Wachtend op betaling"
"processing" => "In behandeling"
"on-hold" => "In de wacht"
"completed" => "Afgerond"
"cancelled" => "Geannuleerd"
"refunded" => "Terugbetaald"
"failed" => "Mislukt"
"checkout-draft" => "Concept"
]
$statuses has the value:
[
"pending" => "Wachtend op betaling"
"processing" => "In behandeling"
"on-hold" => "In de wacht"
"completed" => "Afgerond"
"cancelled" => "Geannuleerd"
"refunded" => "Terugbetaald"
"failed" => "Mislukt"
"checkout-draft" => "Concept"
]
Solution
It works! Having
defined in the ListSuppliers makes it work. Thank you so so much for the help!
defined in the ListSuppliers makes it work. Thank you so so much for the help!