What is the default method expecting when passing an array?
I'm trying to use the default method on a select to pass in the items that were previously selected and need to be populated in the select. However, I'm not sure what format the select is expecting. It's not working, and it's breaking the select entirely (nothing shows up in the dropdown).
This is what's in the returned array from
$this->getSelectedAccounts()
:
which matches the format of the array that I'm using to populate the select. Not sure what I'm doing wrong.1 Reply
Solution
try
->default([172, 113...])